Skip to content

Commit 54fa0aa

Browse files
committed
added doc for token views
1 parent d1e6799 commit 54fa0aa

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

docs/views/token.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Granted Tokens Views
2+
====================
3+
4+
A set of views is provided to let users handle tokens that have been granted to them, without needing to accessing Django Admin Site.
5+
Every view provides access only to the tokens that have been granted to the user performing the request.
6+
7+
8+
Granted Token views are listed at the url `authorized_tokens/`.
9+
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.
12+
13+
14+
.. automodule:: oauth2_provider.views.token
15+
:members:

docs/views/views.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ Django OAuth Toolkit provides a set of pre-defined views for different purposes:
99
function_based
1010
class_based
1111
application
12+
token
1213
mixins

0 commit comments

Comments
 (0)