I’ve downloaded the completed project, updated the “Authority” and “ApiIdentifier” appsettings in the API project with my Auth0 authority and API identifier then updated the “Authority” and “ClientId” appsettings in the client project with my Auth0 authority and my application’s ClientId. I can log in with the client but I get 401 when trying to access the quiz endpoint. Also, after the 401 error in the browser I get a second, content type is not supported error, i.e. “The provided ContentType is not supported; the supported types are ‘application/json’ and the structured syntax suffix ‘application/+json’”.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| What is Blazor? A Tutorial on Building Web Apps with Authentication | 173 | 24251 | May 30, 2024 | |
| Add Auth0 Authentication to Blazor Web Apps | 72 | 5955 | May 5, 2025 | |
| Authentication/login-failed | 11 | 14238 | May 15, 2021 | |
| Call Protected APIs from a Blazor Web App | 27 | 1875 | February 8, 2025 | |
| Securing API in Blazor WASM App | 2 | 4522 | December 17, 2020 |