Closed rickwang7712 closed 5 years ago
You need to url-encode the secret/id
On 30. Oct 2019, at 07:59, rickwang7712 notifications@github.com wrote: Describe the bug
A clear and concise description of what the bug is. Setting string like "6eYJ+6eYJ" will cause Client Authentication failed. related log: {"debug":"crypto/bcrypt: hashedPassword is not the hash of the given password","description":"Client authentication failed (e.g., unknown client, no client authentication included, or unsupported authentication method)","error":"invalid_client","level":"error","msg":"An error occurred","time":"2019-10-30T06:34:05Z"}
Reproducing the bug
Steps to reproduce the behavior:
Response: {"error":"invalid_client","error_description":"Client authentication failed (e.g., unknown client, no client authentication included, or unsupported authentication method)","status _code":401}
Server configuration
Expected behavior
The password should support any character which can be typed on the keyboard.
Environment
Version: v1.0.8+oryOS.12 Git Hash: f60c724 Build Time: 2019-10-04T07:10:20Z
Environment: Docker
Additional context I also tried secret with character "/", which will pass the secret check instead. If there is any restriction about cliect_secret, I think it should be described in the table below List OAuth 2.0 Clients.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
ahh...ok.... I found that I have to use '6eYJ%2B6eYJ' on client side if server set '6eYJ+6eYJ'. Maybe it's because I use Postman in a wrong way? I use raw JSON to send body data('6eYJ+6eYJ').
Thank you for your reply.
You need to url-encode the secret/id …
On 30. Oct 2019, at 07:59, rickwang7712 @.***> wrote: Describe the bug A clear and concise description of what the bug is. Setting string like "6eYJ+6eYJ" will cause Client Authentication failed. related log: {"debug":"crypto/bcrypt: hashedPassword is not the hash of the given password","description":"Client authentication failed (e.g., unknown client, no client authentication included, or unsupported authentication method)","error":"invalid_client","level":"error","msg":"An error occurred","time":"2019-10-30T06:34:05Z"} Reproducing the bug Steps to reproduce the behavior: Response: {"error":"invalid_client","error_description":"Client authentication failed (e.g., unknown client, no client authentication included, or unsupported authentication method)","status _code":401} Server configuration Expected behavior The password should support any character which can be typed on the keyboard. Environment Version: v1.0.8+oryOS.12 Git Hash: f60c724 Build Time: 2019-10-04T07:10:20Z Environment: Docker Additional context I also tried secret with character "/", which will pass the secret check instead. If there is any restriction about cliect_secret, I think it should be described in the table below List OAuth 2.0 Clients. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
Maybe it's because I use Postman in a wrong way? I use raw JSON to send body data('6eYJ+6eYJ').
Most likely, that's why we always encourage using standard libraries to interact with OAuth2 everywhere. It's simply the way HTTP Basic Authentication is defined in the context of OAuth2.
Sorry to bother, I would like to clarify more things.
I was saying that I use Postman to send admin api for creating/updating client. On the client side, I use golang/oauth2 library to send api to public endpoint.
Is there also a standard library or tool to interact with hydra’s admin endpoint? Or should I not using golang/oauth2 library on the client side?
Thanks!
Maybe it's because I use Postman in a wrong way? I use raw JSON to send body data('6eYJ+6eYJ').
Most likely, that's why we always encourage using standard libraries to interact with OAuth2 everywhere. It's simply the way HTTP Basic Authentication is defined in the context of OAuth2.
golang/oauth2 is a good choice for interacting with oauth2. so special client is needed for admin apis
On 30. Oct 2019, at 14:39, rickwang7712 notifications@github.com wrote:
Sorry to bother, I would like to clarify more things.
I was saying that I use Postman to send admin api for creating/updating client. On the client side, I use golang/oauth2 library to send api to public endpoint.
Is there also a standard library or tool to interact with hydra’s admin endpoint? Or should I not using golang’s oauth2 library on the client side?
Thanks!
Maybe it's because I use Postman in a wrong way? I use raw JSON to send body data('6eYJ+6eYJ').
Most likely, that's why we always encourage using standard libraries to interact with OAuth2 everywhere. It's simply the way HTTP Basic Authentication is defined in the context of OAuth2.
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or unsubscribe.
Describe the bug
A clear and concise description of what the bug is. Setting string like "6eYJ+6eYJ" as client_secret will cause "Client Authentication failed".
Reproducing the bug
Steps to reproduce the behavior:
{"some": "error"}
Response: {"error":"invalid_client","error_description":"Client authentication failed (e.g., unknown client, no client authentication included, or unsupported authentication method)","status _code":401}
Server configuration
Expected behavior
The password should support any character which can be typed on the keyboard.
Environment
Version: v1.0.8+oryOS.12 Git Hash: f60c7241788e4860a4fc1b1f7dfe2fed3a93a662 Build Time: 2019-10-04T07:10:20Z
Environment: Docker
Additional context I also tried secret with character "/", which will pass the secret check instead. If there is any restriction about cliect_secret, I think it should be described in the table below List OAuth 2.0 Clients.