You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am following the Angular By Authentication Example. Just downloaded the repo and checkout the basic-authentication branch. Also, I set the .env file with the properties described in the guide.
I start the app in local. Both signup and login work because I can see the new users in my OAuth account under https://manage.auth0.com/dashboard/eu/<domain>/users. However, when the app returns to http://localhost:4040/callback the app UI shows "Error Unauthorized". And I can see in the DevTools that the POST request to https://<domain>/oauth/token returned a 401. The payload seems OK but the response says
{"error":"access_denied","error_description":"Unauthorized"}`. See image:
The logs under https://manage.auth0.com/dashboard/eu/<domain>/logs show the successful login but immediately a Failed Exchange error:
The result is that I can't use the sample app at all.
The text was updated successfully, but these errors were encountered:
Hi! I could solve it by double checking the Application URIs under Applications > Applications section in Auth0 Dashboard. It worked with SPA mode selected. My config was the below (you choose the port number):
Application Login URI -> empty
Allowed Callback URLs -> http://localhost:4040/callback
Allowed Logout URLs -> http://localhost:4040
Allowed Web Origins -> http://localhost:4040
Let me know if you still have the same problem.
(sorry for the late reply)
Hello, I am following the Angular By Authentication Example. Just downloaded the repo and checkout the
basic-authentication
branch. Also, I set the.env
file with the properties described in the guide.I start the app in local. Both signup and login work because I can see the new users in my OAuth account under

https://manage.auth0.com/dashboard/eu/<domain>/users
. However, when the app returns tohttp://localhost:4040/callback
the app UI shows "Error Unauthorized". And I can see in the DevTools that the POST request tohttps://<domain>/oauth/token
returned a 401. The payload seems OK but the response says{"error":"access_denied","error_description":"Unauthorized"}`. See image:
The logs under

https://manage.auth0.com/dashboard/eu/<domain>/logs
show the successful login but immediately a Failed Exchange error:The result is that I can't use the sample app at all.
The text was updated successfully, but these errors were encountered: