OAuth 2.0 Authorize Endpoint with POST Method #3846
Replies: 1 comment 5 replies
-
Hello @MayankShivhare999 I think - and I am not the expert for OAuth2 spec - that POSTing to this endpoint is not defined in the OAuth2 spec.
So (without going deeper into the source code) I think this is probably not implemented at the moment.
Can you explain why you would prefer that? I am struggling to understand what you are trying to do. Maybe the Client Credentials flow is what you are looking for? |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am trying to use the OAuth 2.0 Authorization Endpoint (https://www.ory.sh/oauth2/auth) with the POST method instead of GET. My goal is to pass parameters in the body with Content-Type: application/x-www-form-urlencoded rather than as query parameters in the URL.
When I make a POST request to the OAuth 2.0 Authorization Endpoint, passing the parameters in the body, I am able to successfully retrieve the login_challenge. However, after accepting the login_challenge using the URL https://www.ory.sh/admin/oauth2/auth/requests/login/accept, I receive an OAuth2RedirectTo object. This object contains a redirectTo value that includes only the login_verifier, but it does not have other essential parameters like client_id, redirect_url, etc.
When I try to authenticate using only the login_verifier, the authentication process fails with the following error: "Client authentication failed (e.g., unknown client, no client authentication included, or unsupported authentication method)."
Could you please help me identify what might be going wrong, and how I can resolve this issue? I would really appreciate any assistance you can provide.
Thank you in advance for your time and support!
Beta Was this translation helpful? Give feedback.
All reactions