summaryrefslogtreecommitdiff
path: root/docs/oauth2
diff options
context:
space:
mode:
authorJonathan Huot <JonathanHuot@users.noreply.github.com>2018-12-16 19:38:30 +0100
committerGitHub <noreply@github.com>2018-12-16 19:38:30 +0100
commit2d9410d17be0a748ae390ea466672157fe373d5a (patch)
tree66afc4e553e021157fe738f8eb569a015354cd78 /docs/oauth2
parentbc53c6189a1096fd1f112be42f372d70465ab4ac (diff)
parent8de1e52fabdd9c3738a012bb88e2234d1bd06255 (diff)
downloadoauthlib-2d9410d17be0a748ae390ea466672157fe373d5a.tar.gz
Merge branch 'master' into add-metadata-doc
Diffstat (limited to 'docs/oauth2')
-rw-r--r--docs/oauth2/server.rst11
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
------------------------