Skip to content

Conversation

@iulico-1
Copy link
Contributor

@iulico-1 iulico-1 commented Mar 1, 2024

MSAL.cpp fixed the URI parsing logic to not allow invalid URIs which causes the default redirect URI to not be properly set when calling MSAL.runtime. This caused the sev2 ICM with azcli.

Chaning the default to be the default RU for native clients: https://login.microsoftonline.com/common/oauth2/nativeclient

@iulico-1 iulico-1 requested a review from rayluo March 1, 2024 09:19
Ray: I tested it on his Win laptop to successfully acquire normal token and ssh cert from broker
@rayluo rayluo force-pushed the iulico/update-broker-default-redirect-uri branch from 7a5f3e1 to c73b7ca Compare March 5, 2024 19:49
Copy link
Contributor

@rayluo rayluo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: Later when we need to merge in the mac branch, we will do it this way.

if running_on_mac: uri = "msauth.com.msauth.unsignedapp://auth" else: uri = "https://login.microsoftonline.com/common/oauth2/nativeclient" # Came from https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-auth-code-flow#request-an-authorization-code

And then MSALRuntime will also decide whether to honor the MSAL.py request based on the current platform.

@rayluo rayluo merged commit 8ff855e into dev Mar 6, 2024
@rayluo rayluo deleted the iulico/update-broker-default-redirect-uri branch March 6, 2024 01:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants