Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use the password grant? #14

Open
adhikari-suman opened this issue May 29, 2022 · 2 comments
Open

How to use the password grant? #14

adhikari-suman opened this issue May 29, 2022 · 2 comments

Comments

@adhikari-suman
Copy link

I am trying to use the password grant to login the user. The API hosts both oauth2 server and resource api in same backend api.

When I send the POST request to /token, I get the below response. I am using the default example that is provided for now but I'm using the password grant instead of client_credentials grant.

{
    "error": "access_denied",
    "error_description": "The resource owner or authorization server denied the request"
}

Screen Shot 2022-05-30 at 00 01 49

@jarlandre
Copy link

jarlandre commented Jan 18, 2023

have you used SetPasswordAuthorizationHandler?

@jhoffmann
Copy link

I'm having the same issue. I was able to get a token, but only by providing both the username=test&password=test url params as well as the Authorization: Basic header. What's even stranger, is the two didn't even need to match!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants