Granted Tokens Views
A set of views is provided to let users handle tokens that have been granted to them, without needing to accessing Django Admin Site. Every view provides access only to the tokens that have been granted to the user performing the request.
Granted Token views are listed at the url authorized_tokens/.
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.
- class oauth2_provider.views.token.AuthorizedTokenDeleteView(*args, **kwargs)
View for revoking a specific token
Return the QuerySet that will be used to look up the object.
This method is called by the default implementation of get_object() and may not be called if get_object() is overridden.