-
Notifications
You must be signed in to change notification settings - Fork 337
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
[Bug] WithAuthority override ignored for GetAuthorizationRequestUrl #2929
Comments
Yes, good bug. MSAL ignores the The workaround for now is to specify var app = ConfidentialClientApplicationBuilder
.Create(TestConstants.ClientId)
.WithClientSecret("secret")
.WithAuthority(AzureCloudInstance.AzurePublic, "consumers")
.Build(); |
In response to:
This workaround does not seem to work for our case. We actually use the "Instance" property to integrate with the PPE version of this as well. I find that I cannot both use the "Instance" property and specify "consumers". I'll continue to use a string.Replace on the resulting URL for my workaround.
The following did not work for me:
|
Fixed. Will release with MSAL 4.50 |
Which version of MSAL.NET are you using?
Latest
Platform
.NET 4.7.2
What authentication flow has the issue?
Other?
Is this a new or existing app?
Existing app new scenario within the app.
Repro
We setup an app to use the "common" endpoint. However, there is a scenario where we want to silently get their consumers* login and we create the following URL:
Also tried:
Expected behavior
Expected this to generate a URL for the consumers endpoint.
Actual behavior
Generates URL for the common endpoint.
Possible solution
Perhaps the options specified here are not being used if provided originally in the app? Maybe support this or throw if it isn't supported.
Additional context / logs / screenshots
So the app was originally setup with 'common' via code similar to this:
The text was updated successfully, but these errors were encountered: