Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix MSA silent authentication with MSA-PT apps #1358

Closed
wants to merge 1 commit into from

Conversation

mjcheetham
Copy link
Collaborator

When using Microsoft Account Passthrough (MSA-PT) we need to use the special "transfer" or "Microsoft services" tenant ID rather than the actual MSA tenant ID when doing silent authentication.

This is a shortcoming in the MSAL library that we will need to workaround until this issue can be fixed in MSAL itself.

Modify the silent auth method such that if we are using MSA-PT, and the IAccount object has the MSA tenant ID, we need explicitly set the tenant ID to the transfer tenant ID.

Whilst we are in here, also add an extra catch block around the silent auth code to capture any unexpected exceptions and log them.

Fixes #1297

When using Microsoft Account Passthrough (MSA-PT) we need to use the
special "transfer" or "Microsoft services" tenant ID rather than the
actual MSA tenant ID when doing silent authentication.

This is a shortcoming in the MSAL library that we will need to
workaround until this issue [1] can be fixed in MSAL itself.

Modify the silent auth method such that if we are using MSA-PT, and
the `IAccount` object has the MSA tenant ID, we need explicitly set
the tenant ID to the transfer tenant ID.

Whilst we are in here, also add an extra `catch` block around the silent
auth code to capture any unexpected exceptions and log them.

[1] AzureAD/microsoft-authentication-library-for-dotnet#3077
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth:microsoft Specific to Microsoft AAD/MSA authentication
Projects
None yet
1 participant