Skip to content

Signup and Login are successful but receive unauthorizedΒ #1

@minicatsCB

Description

@minicatsCB

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:
image

The logs under https://manage.auth0.com/dashboard/eu/<domain>/logs show the successful login but immediately a Failed Exchange error:
image

The result is that I can't use the sample app at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions