Skip to content

Docs - code_verifier in authorization_code #1207

@matiseni51

Description

@matiseni51

Hi!

I'm testing from scratch and i was following the documentation to implement Authorization Code grant type but at the moment that i made the request to get the access_token, i get {error: invalid_grant}. (I even extend the grant expire time)

I test different combination between this attributes and i succeeded using CODE_CHALLENGE instead of CODE_VERIFIER
(django-oauth-toolkit/docs/getting_started.rst - line 308 & 319) -
just the value though, like code_verifier=${CODE_CHALLENGE}
image

Looking at those values, I think make sense:
image

If i'm right, maybe the bigger fix would be changing that flag -d code_challenger=${CODE_CHALLENGE}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions