-
Notifications
You must be signed in to change notification settings - Fork 599
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Password forget link in "Dynamic sign up or sign in" sample #390
Comments
Related to #389 (waiting for solution) |
That would only work if the orchestration step is switched from type: claimsexchange to type: combinedsignupsignin. This would look like the starter pack example. After doing that, it’ll work, but you’ll have to use CSS to hide the password field. This is a policy design question, so I suggest continuing on stackoverflow. |
Also @JasSuri, I tried your suggestion, like so: <OrchestrationStep Order="1" Type="CombinedSignInAndSignUp" ContentDefinitionReferenceId="signuporsignin-phone-email">
<ClaimsProviderSelections>
<ClaimsProviderSelection ValidationClaimsExchangeId="LocalAccountSigninPhoneEmailExchange" />
<ClaimsProviderSelection TargetClaimsExchangeId="SignUpWithEmail" />
<ClaimsProviderSelection TargetClaimsExchangeId="SignUpWithPhone" />
<ClaimsProviderSelection TargetClaimsExchangeId="ChangePhoneNumber" />
<ClaimsProviderSelection TargetClaimsExchangeId="GoogleExchange" />
<ClaimsProviderSelection TargetClaimsExchangeId="FacebookExchange" />
<ClaimsProviderSelection TargetClaimsExchangeId="AppleExchange" />
</ClaimsProviderSelections>
<ClaimsExchanges>
<ClaimsExchange Id="LocalAccountSigninPhoneEmailExchange" TechnicalProfileReferenceId="SelfAsserted-LocalAccountSignin-Phone-Email" />
</ClaimsExchanges>
</OrchestrationStep> But it did not have any effect. Here's the technical profile that the <TechnicalProfile Id="SelfAsserted-LocalAccountSignin-Phone-Email">
<DisplayName>Local Account Signin Using Phone Email</DisplayName>
<Protocol Name="Proprietary" Handler="Web.TPEngine.Providers.SelfAssertedAttributeProvider, Web.TPEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
<Metadata>
<Item Key="setting.operatingMode">Username</Item>
<Item Key="UserMessageIfClaimsTransformationBooleanValueIsNotEqual">Please enter a valid phone number or email address.</Item>
<Item Key="setting.forgotPasswordLinkOverride">ForgotPasswordExchange</Item>
<Item Key="setting.forgotPasswordLinkLocation">AfterInput</Item>
</Metadata>
<InputClaims>
<InputClaim ClaimTypeReferenceId="signInName" DefaultValue="{OIDC:LoginHint}" />
</InputClaims>
<OutputClaims>
<OutputClaim ClaimTypeReferenceId="signInName" Required="true" />
<OutputClaim ClaimTypeReferenceId="phoneNumber" />
<OutputClaim ClaimTypeReferenceId="email" />
<OutputClaim ClaimTypeReferenceId="isLocalAccountSignIn" />
</OutputClaims>
<ValidationTechnicalProfiles>
<ValidationTechnicalProfile ReferenceId="ValidateUsernameType" />
</ValidationTechnicalProfiles>
<UseTechnicalProfileForSessionManagement ReferenceId="SM-AAD" />
</TechnicalProfile> |
I was able to fix the issue by following the suggested solution. tho it required alot of extra work and steps. Will be working later on to post the solution in here |
Feel free to make a PR with your sample to this repo. |
@LuisDev99 What did you end up doing to make it appear? |
So, first thing first, I used the phonenumber-passwordless sample. This sample has the 1. First thing first, you want to add the
|
Thanks so much for such a detailed walk-through @LuisDev99. I've followed it through and applied everything to my own custom profile, in which I've split out the email entry and the password entry - we need to be able to check the email domain to see if it belongs to an SSO user and should use an external identity provider, or whether it's a local user and should be authenticated locally. While everything else seems to be working well, the forgotten password link on the password entry page stubbornly refuses to display, even with the embedded password reset as you've implemented above. I've ensured that the Orchestration Step Type is |
I'd like to add the "Forgot your password?" link to the dynamic sign up or sign in example.
I have tried adding
to the selfasserted technical profile (and other possible
forgotPasswordLinkLocation
values). I also tried using theapi.signuporsignin
ContentDefinitionReferenceId
instead of theapi.selfasserted
.Example:
Any idea how I can add the forgot password link to the main page and to the log-in page when the user's email exists?
The text was updated successfully, but these errors were encountered: