File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ Paul Oswald
80
80
Pavel Tvrdík
81
81
Peter Carnesciali
82
82
Peter Karman
83
+ Peter McDonald
83
84
Petr Dlouhý
84
85
Rodney Richardson
85
86
Rustem Saiargaliev
Original file line number Diff line number Diff line change @@ -26,7 +26,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
26
26
* #1311 Add option to disable client_secret hashing to allow verifying JWTs' signatures.
27
27
28
28
- ### Fixed
29
- * #1284 Allow to logout whith no id_token_hint even if the browser session already expired
29
+ * #1322 Instructions in documentation on how to create a code challenge and code verifier
30
+ * #1284 Allow to logout with no id_token_hint even if the browser session already expired
30
31
* #1296 Added reverse function in migration 0006_alter_application_client_secret
31
32
32
33
## [ 2.3.0] 2023-05-31
Original file line number Diff line number Diff line change @@ -268,9 +268,8 @@ Now let's generate an authentication code grant with PKCE (Proof Key for Code Ex
268
268
import hashlib
269
269
270
270
code_verifier = ''.join(random.choice(string.ascii_uppercase + string.digits) for _ in range(random.randint(43, 128)))
271
- code_verifier = base64.urlsafe_b64encode(code_verifier.encode('utf-8'))
272
271
273
- code_challenge = hashlib.sha256(code_verifier).digest()
272
+ code_challenge = hashlib.sha256(code_verifier.encode('utf-8') ).digest()
274
273
code_challenge = base64.urlsafe_b64encode(code_challenge).decode('utf-8').replace('=', '')
275
274
276
275
Take note of ``code_challenge `` since we will include it in the code flow URL. It should look something like ``XRi41b-5yHtTojvCpXFpsLUnmGFz6xR15c3vpPANAvM ``.
You can’t perform that action at this time.
0 commit comments