We are using https://github.com/AzureAD/azure-activedirectory-library-for-objc to enable Azure AD login for our native iOS app.
We have a webpage (javascript) which also uses ADAL.js to enable Azure AD login (same AD) for SSO.
Now, suppose a user is already logged in to the iOS app and then the user clicks on a the webpage link from within the iOS app, then the webpage opens in Safari but the user is asked to enter his credentials again instead of using the iOS app session.
How can SSO be enforced between native iOS app and webpage in browser?
If iOS app is able to pass the id_token to the webpage as a url parameter, how can we validate and use the same session from the webpage (javascript)?
Any help is greatly appreciated.
Thanks.