简体   繁体   中英

How to implement Azure AD B2C PasswordReset functionality in an iOS App

In a (Swift) iOS app that is using Azure AD B2C authentication, you can call the SignIn_Signup policy that opens a Safari browser where you can Login or Register a new account. I would like this page to also have a Password Reset link.

But when that link is clicked you can't return to the iOS app, catch the AADB2C90118 exception and call the PasswordReset policy in the same browser because the Safari browser is sandboxed. (This is the way a windows app handles PasswordReset requests)

How can I call a PasswordReset policy from a link in the SignIn_Signup browserscreen in an iOS app?

I've looked at the iOS B2C sample with MSAL but it doesn't have a PasswordReset.

(a workaround would be to call the PasswordReset policy from a second button in the iOS app but I want it to be called from the Safari browser.)

Btw, I am using Custom Policies because I have to do some server side validation.

Currently it is not possible to call a password reset policy without returning back to your app. You should vote for that feature though: aka.ms/aadb2cfeedback

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM