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 | 24210 | May 30, 2024 | |
Add Auth0 Authentication to Blazor Web Apps | 72 | 5791 | May 5, 2025 | |
Call Protected APIs from a Blazor Web App | 27 | 1806 | February 8, 2025 | |
.Net 8.0 Blazor | 35 | 6947 | November 8, 2024 | |
Authentication/login-failed | 11 | 14192 | May 15, 2021 |