-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Blazor WebAssembly Msal TryAddAdditionalParameter("prompt", "select_account") does nothing #44854
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Wrong repo, perhaps somebody can transfer to aspnetcore? |
I am pretty sure this is a bug. Hopefully someone can take a look and reproduce. I don't think I am able to test using the newer rtm.22513.3 packages as they complain about downgrades from 7.0.0 (which isn't out yet). |
We're also using that workaround in the test code: Line 419 in 2e29720
This appears to be a known issue, @javiercn do you have a tracking issue for this, or is the workaround (also mentioned here) the recommended resolution for now? Note for the workaround, @juho-hanhimaki mentioned:
|
@javiercn just to confirm the next steps here, were there any changes made following the community standup which may not have flowed through / may not have been comprehensive? Or are we just initially investigating? |
Fyi, seeing this issue still on published release builds on 7.0.0 release. |
@TanayParikh this is worth investigating. There are some issues I think with the way we do Json serialization internally and some linking related issues. |
I believe this is likely caused by the same issue as #44973 |
@juho-hanhimaki try disabling linking for this assembly Add this to your csproj
And this is TrimmerRootDescriptor.xml: <?xml version="1.0" encoding="UTF-8" ?>
<linker>
<assembly fullname="Microsoft.Authentication.WebAssembly.Msal" preserve="all" />
<assembly fullname="Microsoft.AspNetCore.Components.WebAssembly.Authentication" preserve="all" />
</linker> |
Hi @juho-hanhimaki. We have added the "Needs: Author Feedback" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
@javiercn that does solve the problem. |
@juho-hanhimaki thanks for the confirmation. This looks very much like the same issue then. Hopefully we can get a fix into the next patch. |
this was addressed in 7.0.1 as part of #45028 |
Description
I am using the MSAL authentication with Azure AD trying to add prompt parameter to the sign in. It does not work as expected.
The observed request
https://login.microsoftonline.com/common/oauth2/v2.0/authorize?...
doesn't contain the prompt parameter and the request just completes with SSO.Reproduction Steps
RedirectToLoginSelectAccount.razor
The following weird version works on development build in VS, but doesn't work in published release build.
Expected behavior
Authentication to include the prompt parameter.
Actual behavior
Prompt parameter missing.
Regression?
No response
Known Workarounds
No response
Configuration
7.0.101 [C:\Program Files\dotnet\sdk]
Other information
No response
The text was updated successfully, but these errors were encountered: