azure-ad-b2c / samples

Azure AD B2C custom policy solutions and samples.
846 stars 598 forks source link

Policy sign-up-deep-link - Login Navigation #611

Open stephenstroud opened 7 months ago

stephenstroud commented 7 months ago

When the user lands on the signup page how can I display "Already Registered, Login here" hyper link which navigates me back to the sign-in page. It's just the reverse of the sign-up now link?

stephenstroud commented 7 months ago

dynamic-sign-up-sign-in Also a nice policy for the above, however, when landing on the signup page following the sign-in flow. What do we do if the user wants to use another email to sign-in. I want them to easily go back to start. I could probably hook into the browser history and go back in history but it's not ideal.

What's the idea of this cancel button at the top left too, feels odd.

stephenstroud commented 7 months ago

I've cloned the custom policies and templates. Looks like I could dump the siginsignup united flow and have two separate flows one for sign in and the other for sign up. On signup I could add an element under the <div id="api" role="main"></div>template injection prompting the user with "Already Registered, Login here" which will bounce them back off the web app to the sign-in flow... It would be ideal if I could achieve this within the custom policy section - Effectively just inverting the unified flow. Is it possible?

JasSuri commented 6 months ago

To go from sign up page back to sign in page, you can embed a link in the sign up page to myapp.com/signin. This will start the flow again properly.