diff options
author | Jonathan Huot <JonathanHuot@users.noreply.github.com> | 2018-12-16 18:57:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-16 18:57:17 +0100 |
commit | 8de1e52fabdd9c3738a012bb88e2234d1bd06255 (patch) | |
tree | ecd00a27c357078f40279afcc133ea122f4d0c24 /docs/oauth2 | |
parent | a73dcbdef98ade5750659a3e0ef40d107f3222a2 (diff) | |
parent | 1c55f05aaab476e257ecdfa096784d2eae0e4de1 (diff) | |
download | oauthlib-8de1e52fabdd9c3738a012bb88e2234d1bd06255.tar.gz |
Merge pull request #617 from oauthlib/601-pkce-support
Initial OAuth2.0/PKCE Provider support
Diffstat (limited to 'docs/oauth2')
-rw-r--r-- | docs/oauth2/server.rst | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/oauth2/server.rst b/docs/oauth2/server.rst index 35a58aa..6c065c5 100644 --- a/docs/oauth2/server.rst +++ b/docs/oauth2/server.rst @@ -246,6 +246,17 @@ the token. expires_at = django.db.models.DateTimeField() +**PKCE Challenge (optional)** + + If you want to support PKCE, you have to associate a `code_challenge` + and a `code_challenge_method` to the actual Authorization Code. + + .. code-block:: python + + challenge = django.db.models.CharField(max_length=128) + challenge_method = django.db.models.CharField(max_length=6) + + 2. Implement a validator ------------------------ |