In working through this article I’ve found that when I assign the RemoteAuthenticationOptions.ProviderOptions.ResponseType to “code” I get a 401 response with the message “There was an error trying to log you in: ‘’”. If I do not assign the ResponseType (defaults to token?) the login succeeds, however, after successful login attempts access my API fail at the TryGetToken method. Inspection of the AccessTokenResult shows it’s Status is RequiredRedirect. Any thoughts on what I can try here?
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
What is Blazor? A Tutorial on Building Web Apps with Authentication | 173 | 24199 | May 30, 2024 | |
Add Auth0 Authentication to Blazor Web Apps | 72 | 5736 | May 5, 2025 | |
Call Protected APIs from a Blazor Web App | 27 | 1786 | February 8, 2025 | |
.Net 8.0 Blazor | 35 | 6940 | November 8, 2024 | |
Authentication/login-failed | 11 | 14181 | May 15, 2021 |