question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Oauth Password Flow Basic Auth question?

See original GitHub issue

I’m trying to work out if our OAuth server is missing a grant or whether this is incorrect use of the grant.

The password flow in the authorize step with basic auth seems to curl 'https://api.domain.com/oauth2/token' -H 'authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' -H 'content-type: application/x-www-form-urlencoded' -H 'access-control-allow-origin: *' -H 'accept: application/json, text/plain, */*' --data 'grant_type=password

Where the basic auth contains the username/password of the user. However I can’t find this in the RFC. Should this not contain the user/pass in the body with the client_id/secret in the the basic auth header?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
matzetroniccommented, Jul 28, 2017

The thing that is not implemented (and I don’t feel like it should be implemented ever) is the “But additionally our /oauth/token endpoint is protected by basic auth”.

But isn’t that exactly what https://docs.cloudfoundry.org/api/uaa/#with-authorization describes?

1reaction
matzetroniccommented, Jul 28, 2017

Since I’m not an expert with oauth and security I don’t know if that makes sense or not. I’m just stuck since I can’t get it to work. By the way, my token endpoint is https://docs.cloudfoundry.org/api/uaa/#with-authorization so I don’t think I will be the only one with that problem in the future…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spring Boot OAuth2 password login via basic auth
Authorization -code flow is a protocol between client and authorization-server to authenticate users and acquire access-token for client to act ...
Read more >
Top OAuth 2 (2022) Interview Questions | JavaInUse
In this post we will look at OAuth 2 Interview questions. Examples are provided with explanations. What is OAuth 2? What are the...
Read more >
What is the OAuth 2.0 Password Grant Type? - Okta Developer
The Password grant is one of the simplest OAuth grants and involves only one step: the application presents a traditional username and password...
Read more >
Multifactor auth in OAuth2 Password flow
1 Answer 1 ... That is correct. The OAuth2 password flow does not support multifactor authentication because the only data it accepts is...
Read more >
Authenticate using OAuth 2.0 - Oracle Help Center
Encode the string with base-64 encoding, and you can pass it as an authentication header. The system does not support passing Client Id...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found