I have an endpoint on my API that is decorated with the [Authorize] attribute. When I pass an Access Token from the Web App to the API App, which is obtained by the Web App after authenticating the User with Auth0, the API endpoint returns a 401 Unauthorized. When I pass a machine -to-machine Access Token (obtained from the Auth0 Test section on the API Configuration screen) to the API then it goes through Authorization fine. But that M2M token is not useful to me cause I need the user claims which are only available through the Login process.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Web Api Authentication with Auth0 | 2 | 2245 | October 29, 2021 | |
Auth0 CLI test access token no longer works | 5 | 59 | February 1, 2025 | |
Cannot get token for Management API | 3 | 3199 | April 21, 2022 | |
Machine to Machine application cannot retrieve API token | 3 | 2221 | November 25, 2021 | |
Postman is not generating my token correctly | 1 | 3499 | April 4, 2022 |