-
Notifications
You must be signed in to change notification settings - Fork 112
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
oauth2 request against server with basic authentication #20
Comments
Hi guys, I'm facing the same issue and already hacked a bit the code. Could we discuss a definitive solution? The standard found in http://tools.ietf.org/html/draft-ietf-oauth-v2-20#section-2.4.1 is not so restrictive. So I think the library could give a way to use both HTTP Basic Authentication and client_id/secret. Of course I could collaborate when some decision is taken. |
Excuse my ignorance, but why would you like to set your client credentials twice? |
Both are different credentials, that is the point. HTTP Basic Auth is a human user/password credential. |
Your are right, in general the HTTP Basic Authenticate is used to authenticate a user. But in the context of OAuth2, it is used to authenticate the client : The This library supports both mechanisms, but if the HTTP Basic Authenticate is used, the |
Exactly, that is my point. I propose the library to give the option to ignore it or not. Do you think it's possible? |
As your problem seems to be out of scope of the OAuth2 specification, I recommend you to override the function:
|
I would like to avoid solving it by a hack, which is actually the way the platform is working now. In addition, if I keep this class hacked and the library is updated I should do extra work to keep it working. |
Hey guys, any news on this? |
if i want to do a request against my oauth2 server with client_id and client_secret and add a basic authentication to this request the OAuth2::getClientCredentials() will never return inputData client_id and client_secret.
curl -v -k -umyuser:secretpass -X POST -d "client_id=512238f5e96231e153000000_1a5t3bby1okks4w0cwcwok84kss0g4sk4sws8cgwsgkko44gwk&client_secret=1t5omo9yzt340wkkgwkwccog8g00k4k80o0w4k0sk0gkoww008&grant_type=client_credentials" https://testserver.com/oauth/v2/token
The text was updated successfully, but these errors were encountered: