1

Is there anyway to handle where the cancel button redirects from within a custom policy. I am actually not going to have a custom webapp behind this policy and the app that is there is not customizable by myself.

I am working with the kind of setup in this document.

https://learn.microsoft.com/en-us/azure/active-directory-b2c/partner-f5

I am hoping for something similar to how we can now handle the forgot password within the custom policy.

Andrew Wiebe
  • 111
  • 13

1 Answers1

0

If a user clicks the "Cancel button" and then wants to go back to the home page, you'll need to either catch the error.

https://<b2ctenant>.b2clogin.com/<b2ctenant>.onmicrosoft.com/oauth2/v2.0/authorize?p=B2C_1_signupsignin
&client_id=your_client_id  
&nonce=defaultNonce  
&redirect_uri=your_redirect_uri  
&scope=your_scope  
&response_type=id_token  
&prompt=login  

The redirect URI will be present in the URL. Once you click cancel button it will automatically redirect to the URL you specified.

Reference:

Cancel button Azure B2C - Microsoft Q&A credits by JamesTran-MSFT

Imran
  • 3,875
  • 2
  • 3
  • 12