Skip to content

Commit 3ddc458

Browse files
committed
added docs for approval_prompt parameter, fixes #92
1 parent b3641fa commit 3ddc458

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

docs/extending_application.rst renamed to docs/advanced_topics.rst

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Advanced topics
2+
+++++++++++++++
3+
4+
15
Extending the Application model
26
===============================
37

@@ -43,4 +47,17 @@ That's all, now Django OAuth Toolkit will use your model wherever an Application
4347

4448
**Notice:** `OAUTH2_PROVIDER_APPLICATION_MODEL` is the only setting variable that is not namespaced, this
4549
is because of the way Django currently implements swappable models.
46-
See issue #90 (https://github.com/evonove/django-oauth-toolkit/issues/90) for details
50+
See issue #90 (https://github.com/evonove/django-oauth-toolkit/issues/90) for details
51+
52+
53+
Skip authorization form
54+
=======================
55+
56+
Depending on the OAuth2 flow in use and the access token policy, users might be prompted for the
57+
same authorization multiple times: sometimes this is acceptable or even desiderable but other it isn't.
58+
To control DOT behaviour you can use `approval_prompt` parameter when hitting the authorization endpoint.
59+
Possible values are:
60+
* `force` - users are always prompted for authorization.
61+
62+
* `auto` - users are prompted only the first time, subsequent authorizations for the same application
63+
and scopes will be automatically accepted.

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Index
3434
tutorial/tutorial
3535
rest-framework/rest-framework
3636
views/views
37-
extending_application
37+
advanced_topics
3838
settings
3939
glossary
4040

0 commit comments

Comments
 (0)