Azure-Samples / active-directory-b2c-ios-swift-native-msal

An iOS sample in Swift that authenticates Azure AD B2C users and calls an API using OAuth 2.0
https://aka.ms/aadb2c
MIT License
46 stars 22 forks source link

How to skip the Login for Profile Edit Policy ? #39

Closed Shayila closed 3 years ago

Shayila commented 4 years ago

Hi, I want to edit the profile for the user who is recently signed in, How to skip the login page in MSAL custom Edit policy when the user is already signed-in?

jennyf19 commented 4 years ago

@Shayila You should be able to specify the prompt value. You should be able to use something like no_prompt or not send any prompt at all. B2C will used the active session cookie to determine if the user needs to be shown the login screen again or not. If not, they will go directly to the edit profile page. @oldalton can you provide info on how to do that for this sample? thanks.