Oauth Password Flow Basic Auth question?
See original GitHub issueI’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:
- Created 6 years ago
- Comments:13 (3 by maintainers)
 Top Results From Across the Web
Top 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 > Top Related Medium Post
Top Related Medium Post
No results found
 Top Related StackOverflow Question
Top Related StackOverflow Question
No results found
 Troubleshoot Live Code
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free Top Related Reddit Thread
Top Related Reddit Thread
No results found
 Top Related Hackernoon Post
Top Related Hackernoon Post
No results found
 Top Related Tweet
Top Related Tweet
No results found
 Top Related Dev.to Post
Top Related Dev.to Post
No results found
 Top Related Hashnode Post
Top Related Hashnode Post
No results found

But isn’t that exactly what https://docs.cloudfoundry.org/api/uaa/#with-authorization describes?
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…