Microsoft.Authentication.WebAssembly.Msal does not work with on-prem ADFS #28956
Labels
area-blazor
Includes: Blazor, Razor Components
✔️ Resolution: Duplicate
Resolved as a duplicate of another issue
Status: Resolved
Securing a Blazor WASM application with on-premises ADFS 2019 does not work. There are two issues that prevent it from working:
msal-browser
(2.0.0) incorrectly requiresclient_info
in the token response which ADFS does not send. The login callback fails and the login process stops midway through. This is fixed in later versions ofmsal-browser
.id_token_hint
parameter. The misleading error logged by ADFS isThe specified redirect URL did not match any of the OAuth client's redirect URIs. The logout was successful but the client will not be redirected.
Locally I have upgraded to
msal-browser
2.8.0. I have also modifiedAuthenticationService.ts
to store the receivedid_token
and send it asid_token_hint
when logging out. With that I can successfully login and logout.The text was updated successfully, but these errors were encountered: