You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The field Code in types.TokenRequest has a wrong name in the struct field tag.
Therefore, code exchange for grant type "pkce" does not work and returns an error:
{"code":400,"error_code":"validation_failed","msg":"invalid request: both auth code and code verifier should be non-empty"}
The name in the field tag is currently code, but ought to be auth_code instead.
To Reproduce
Initiate a PKCE flow via the /auth/v1/authorize endpoint and save the returned code verifier in a cookie
Receive callback and parse code
Create a TokenRequest with the grant type "pkce" and set Code to the parsed code and the verifier to the one saved in step 1:
Call Token and pass the TokenRequest object from step 3
You will receive the error mentioned above
Expected behavior
No error, access token should be received correctly.
The text was updated successfully, but these errors were encountered:
Bug report
Describe the bug
The field
Code
intypes.TokenRequest
has a wrong name in the struct field tag.Therefore, code exchange for grant type
"pkce"
does not work and returns an error:{"code":400,"error_code":"validation_failed","msg":"invalid request: both auth code and code verifier should be non-empty"}
The name in the field tag is currently
code
, but ought to beauth_code
instead.To Reproduce
Initiate a PKCE flow via the
/auth/v1/authorize
endpoint and save the returned code verifier in a cookieReceive callback and parse code
Create a
TokenRequest
with the grant type"pkce"
and setCode
to the parsed code and the verifier to the one saved in step 1:Call
Token
and pass theTokenRequest
object from step 3You will receive the error mentioned above
Expected behavior
No error, access token should be received correctly.
The text was updated successfully, but these errors were encountered: