SSO between app registrations - failing on iOS

Holly Britain 0 Reputation points
2025-01-14T15:28:51.7733333+00:00

Hello, I am attempting to make use of the tenant-level access that auth tokens have by default within B2C so that we are not passing tokens around between app registrations. On android devices, this works out of the box when navigating between apps, not requiring re-authentication due to the shared taken cache.

On iOS, however, the token cache does not seem to be shared, requesting re-authentication when navigating from one app to another. Why?

The first authentication is taking place in a Maui app, and both the app and website we're navigating between are using the MSAL library.

Thank you in advance for any help!

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,814 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,855 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 69,276 Reputation points
    2025-01-15T01:10:14.2433333+00:00

    For security IOS 11+ no longer shares cookies between applications. Each app gets its own sandboxed cookies jar. For SSO the azure login sets a cookie. But due to the sandbox the app webview when it navigates to the azure login, it does not have access to a cookie set by safari for this site.

    note: I assume at some point Android will follow suite.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.