skip to Main Content

We are using Azure AD as OIDC Identity Provider in AWS Cognito.
In iOS side, we use ASWebAuthenticationSession to show a web view and let the user login. User can login successfully but the issue is when opening Safari browser in the iPhone and going to the user’s Microsoft account, the user needs to input his/her credentials.

Notes:

Anything we’re missing for SSO to work between our app and Safari app?

2

Answers


  1. Chosen as BEST ANSWER

    It seems SSO depends on a couple of things

    • How do authentication services store the cookies
    • What API you use to login the user

    Found this very useful blog from Okta that summarizes cookies sharing between Safari app, SFSafariViewController, SFAuthenticationSession, ASWebAuthenticationSession.


  2. You should be able to create a link with the authorization token for Microsoft, then redirect your app to open the link in safari. The iPhone will leave your app to open the auth link including the token.
    Then if you leave your app, you would have loaded the auth info into safari for use outside your app.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search