You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/tutorial/tutorial_04.rst
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
Part 4 - Revoking an OAuth2 Token
1
+
Part 4 - Revoking an OAuth2 Token
2
2
=================================
3
3
4
4
Scenario
@@ -11,10 +11,10 @@ Be sure that you've granted a valid token. If you've hooked in `oauth-toolkit` i
11
11
12
12
`Oauthlib <https://github.com/idan/oauthlib>`_ is compliant with https://tools.ietf.org/html/rfc7009, so as specified, the revocation request requires:
13
13
14
-
- token: REQUIRED, this is the :term:`Access Token` you want to revoke
15
-
- token_type_hint: OPTIONAL, designating either 'access_token' or 'refresh_token'.
14
+
- token: REQUIRED, this is the :term:`Access Token` you want to revoke
15
+
- token_type_hint: OPTIONAL, designating either 'access_token' or 'refresh_token'.
16
16
17
-
Note that these revocation-specific parameters are in addition to the authentication parameters already specified by your particular client type.
17
+
Note that these revocation-specific parameters are in addition to the authentication parameters already specified by your particular client type.
18
18
19
19
Setup a Request
20
20
---------------
@@ -26,8 +26,8 @@ Depending on the client type you're using, the token revocation request you may
26
26
Content-Type: application/x-www-form-urlencoded
27
27
token=XXXX&client_id=XXXX
28
28
29
-
Where token is :term:`Access Token` specified above, and client_id is the `Client id` obtained in
30
-
obtained in :doc:`part 1 <tutorial_01>`. If your application type is `Confidential` , it requires a `Client secret`, you will have to add it as one of the parameters:
29
+
Where token is :term:`Access Token` specified above, and client_id is the `Client id` obtained in
30
+
obtained in :doc:`part 1 <tutorial_01>`. If your application type is `Confidential` , it requires a `Client secret`, you will have to add it as one of the parameters:
31
31
32
32
::
33
33
@@ -36,7 +36,7 @@ obtained in :doc:`part 1 <tutorial_01>`. If your application type is `Confidenti
36
36
token=XXXX&client_id=XXXX&client_secret=XXXX
37
37
38
38
39
-
The server will respond wih a `200` status code on successful revocation. You can use `curl` to make a revoke request on your server. If you have access to a local installation of your authorization server, you can test revoking a token with a request like that shown below, for a `Confidential` client.
39
+
The server will respond wih a `200` status code on successful revocation. You can use `curl` to make a revoke request on your server. If you have access to a local installation of your authorization server, you can test revoking a token with a request like that shown below, for a `Confidential` client.
Copy file name to clipboardExpand all lines: docs/views/token.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ Every view provides access only to the tokens that have been granted to the user
8
8
Granted Token views are listed at the url `authorized_tokens/`.
9
9
10
10
11
-
For each granted token there is a delete view that allows you to delete such token. You can override default templates `authorized-tokens.html` for the list view and `authorized-token-delete.html` for the delete view; they are located inside `templates/oauth2_provider` folder.
11
+
For each granted token there is a delete view that allows you to delete such token. You can override default templates `authorized-tokens.html` for the list view and `authorized-token-delete.html` for the delete view; they are located inside `templates/oauth2_provider` folder.
Copy file name to clipboardExpand all lines: oauth2_provider/templates/oauth2_provider/application_list.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ <h3 class="block-center-heading">{% trans "Your applications" %}</h3>
13
13
14
14
<aclass="btn btn-success" href="{% url "oauth2_provider:register" %}">{% trans "New Application" %}</a>
15
15
{% else %}
16
-
16
+
17
17
<p>{% trans "No applications defined" %}. <ahref="{% url 'oauth2_provider:register' %}">{% trans "Click here" %}</a> {% trans "if you want to register a new one" %}</p>
0 commit comments