Skip to content

Commit 6085a2d

Browse files
pre-commit-ci[bot]auvipy
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent d67210e commit 6085a2d

File tree

6 files changed

+17
-17
lines changed

6 files changed

+17
-17
lines changed

LICENSE

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ Copyright (c) 2013, Massimiliano Pippi, Federico Frenguelli and contributors
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without
5-
modification, are permitted provided that the following conditions are met:
5+
modification, are permitted provided that the following conditions are met:
66

77
1. Redistributions of source code must retain the above copyright notice, this
8-
list of conditions and the following disclaimer.
8+
list of conditions and the following disclaimer.
99
2. Redistributions in binary form must reproduce the above copyright notice,
1010
this list of conditions and the following disclaimer in the documentation
11-
and/or other materials provided with the distribution.
11+
and/or other materials provided with the distribution.
1212

1313
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
1414
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
@@ -22,5 +22,5 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2222
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2323

2424
The views and conclusions contained in the software and documentation are those
25-
of the authors and should not be interpreted as representing official policies,
25+
of the authors and should not be interpreted as representing official policies,
2626
either expressed or implied, of the FreeBSD Project.

docs/getting_started.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Edit :file:`users/models.py` adding the code below:
8787
.. code-block:: python
8888
8989
from django.contrib.auth.models import AbstractUser
90-
90+
9191
class User(AbstractUser):
9292
pass
9393
@@ -213,8 +213,8 @@ Create a user::
213213

214214
Username: wiliam
215215
Email address: [email protected]
216-
Password:
217-
Password (again):
216+
Password:
217+
Password (again):
218218
Superuser created successfully.
219219

220220
OAuth2 Authorization Grants

docs/tutorial/tutorial_01.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ the API, subject to approval by its users.
8080

8181
Let's register your application.
8282

83-
You need to be logged in before registration. So, go to http://localhost:8000/admin and log in. After that
83+
You need to be logged in before registration. So, go to http://localhost:8000/admin and log in. After that
8484
point your browser to http://localhost:8000/o/applications/ and add an Application instance.
8585
`Client id` and `Client Secret` are automatically generated; you have to provide the rest of the informations:
8686

docs/tutorial/tutorial_04.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Part 4 - Revoking an OAuth2 Token
1+
Part 4 - Revoking an OAuth2 Token
22
=================================
33

44
Scenario
@@ -11,10 +11,10 @@ Be sure that you've granted a valid token. If you've hooked in `oauth-toolkit` i
1111

1212
`Oauthlib <https://github.com/idan/oauthlib>`_ is compliant with https://tools.ietf.org/html/rfc7009, so as specified, the revocation request requires:
1313

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'.
1616

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.
1818

1919
Setup a Request
2020
---------------
@@ -26,8 +26,8 @@ Depending on the client type you're using, the token revocation request you may
2626
Content-Type: application/x-www-form-urlencoded
2727
token=XXXX&client_id=XXXX
2828

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:
3131

3232
::
3333

@@ -36,7 +36,7 @@ obtained in :doc:`part 1 <tutorial_01>`. If your application type is `Confidenti
3636
token=XXXX&client_id=XXXX&client_secret=XXXX
3737

3838

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.
4040

4141
::
4242

docs/views/token.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Every view provides access only to the tokens that have been granted to the user
88
Granted Token views are listed at the url `authorized_tokens/`.
99

1010

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.
1212

1313

1414
.. automodule:: oauth2_provider.views.token

oauth2_provider/templates/oauth2_provider/application_list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ <h3 class="block-center-heading">{% trans "Your applications" %}</h3>
1313

1414
<a class="btn btn-success" href="{% url "oauth2_provider:register" %}">{% trans "New Application" %}</a>
1515
{% else %}
16-
16+
1717
<p>{% trans "No applications defined" %}. <a href="{% url 'oauth2_provider:register' %}">{% trans "Click here" %}</a> {% trans "if you want to register a new one" %}</p>
1818
{% endif %}
1919
</div>

0 commit comments

Comments
 (0)