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

getting 401 instead od access token #3

Open
qwertukg opened this issue Jul 18, 2018 · 1 comment
Open

getting 401 instead od access token #3

qwertukg opened this issue Jul 18, 2018 · 1 comment

Comments

@qwertukg
Copy link

qwertukg commented Jul 18, 2018

Hi! Good example!
But when i try to get access token by cUrl:

-XPOST "web_app:@localhost:9999/oauth/token" -d "grant_type=password&username=reader&password=reader"

getting:

{
    "error": "unauthorized",
    "error_description": "Full authentication is required to access this resource"
}

Just clone repo

@xetys
Copy link
Owner

xetys commented Dec 19, 2018

I would try this using the -u option of curl, like

curl -u 'web_app:' ocalhost:9999/oauth/token  -d "grant_type=password&username=reader&password=reader"

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

2 participants