Skip to content

Commit

Permalink
Add 'code_verifier' parameter to token request (#1182)
Browse files Browse the repository at this point in the history
* Add 'code_verifier' parameter to token request 

Fixes #1178

* Address feedback
  • Loading branch information
Kaleb committed Aug 6, 2022
1 parent 8041939 commit 08bfa04
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Joseph Abrahams
Jozef Knaperek
Julien Palard
Jun Zhou
Kaleb Porter
Kristian Rune Larsen
Michael Howitz
Paul Dekkers
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
-->

## [unreleased]
* Add 'code_verifier' parameter to token requests in documentation

## [2.1.0] 2022-06-19

Expand Down
3 changes: 2 additions & 1 deletion docs/getting_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ Export it as an environment variable:
Now that you have the user authorization is time to get an access token::

curl -X POST -H "Cache-Control: no-cache" -H "Content-Type: application/x-www-form-urlencoded" "http://127.0.0.1:8000/o/token/" -d "client_id=${ID}" -d "client_secret=${SECRET}" -d "code=${CODE}" -d "redirect_uri=http://127.0.0.1:8000/noexist/callback" -d "grant_type=authorization_code"
curl -X POST -H "Cache-Control: no-cache" -H "Content-Type: application/x-www-form-urlencoded" "http://127.0.0.1:8000/o/token/" -d "client_id=${ID}" -d "client_secret=${SECRET}" -d "code=${CODE}" -d "code_verifier=${CODE_VERIFIER}" -d "redirect_uri=http://127.0.0.1:8000/noexist/callback" -d "grant_type=authorization_code"

To be more easy to visualize::

Expand All @@ -316,6 +316,7 @@ To be more easy to visualize::
-d "client_id=${ID}" \
-d "client_secret=${SECRET}" \
-d "code=${CODE}" \
-d "code_verifier=${CODE_VERIFIER}" \
-d "redirect_uri=http://127.0.0.1:8000/noexist/callback" \
-d "grant_type=authorization_code"

Expand Down

0 comments on commit 08bfa04

Please sign in to comment.