Skip to content

Commit 08bfa04

Browse files
author
Kaleb
authored
Add 'code_verifier' parameter to token request (#1182)
* Add 'code_verifier' parameter to token request Fixes #1178 * Address feedback
1 parent 8041939 commit 08bfa04

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ Joseph Abrahams
4949
Jozef Knaperek
5050
Julien Palard
5151
Jun Zhou
52+
Kaleb Porter
5253
Kristian Rune Larsen
5354
Michael Howitz
5455
Paul Dekkers

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515
-->
1616

1717
## [unreleased]
18+
* Add 'code_verifier' parameter to token requests in documentation
1819

1920
## [2.1.0] 2022-06-19
2021

docs/getting_started.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ Export it as an environment variable:
305305
306306
Now that you have the user authorization is time to get an access token::
307307

308-
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"
308+
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"
309309

310310
To be more easy to visualize::
311311

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

0 commit comments

Comments
 (0)