Skip to content

Commit

Permalink
Update Balosar.Client to use response_mode=query instead of response_…
Browse files Browse the repository at this point in the history
…mode=fragment
  • Loading branch information
kevinchalet committed Dec 4, 2020
1 parent 9feb9db commit 1a0ebde
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion samples/Balosar/Balosar.Client/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,13 @@ public static Task Main(string[] args)
options.ProviderOptions.ClientId = "balosar-blazor-client";
options.ProviderOptions.Authority = "https://localhost:44310/";
options.ProviderOptions.ResponseType = "code";
options.ProviderOptions.ResponseMode = "fragment";

// Note: response_mode=fragment is the best option for a SPA. Unfortunately, the Blazor WASM
// authentication stack is impacted by a bug that prevents it from correctly extracting
// authorization error responses (e.g error=access_denied responses) from the URL fragment.
// For more information about this bug, visit https://github.com/dotnet/aspnetcore/issues/28344.
//
options.ProviderOptions.ResponseMode = "query";
options.AuthenticationPaths.RemoteRegisterPath = "https://localhost:44310/Identity/Account/Register";
});

Expand Down

0 comments on commit 1a0ebde

Please sign in to comment.