-
Notifications
You must be signed in to change notification settings - Fork 243
Closed
Description
When using a post request (ex: in the /token endpoint), some oauth providers expects the client_id and client_secret to be passed in the form data, while others use a client_id url param and an authorization header for the client_secret.
In order to support both styles, the golang oauth client first send a request using the url param method, then it fallback to the form data method.
However, openauth delete the oauth:code when the first request fails, meaning that the second one will fail too.
I propose to only delete the oauth code when the tokens are actually emitted.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels