Skip to content

Commit 4f5f0ce

Browse files
authored
Merge branch 'jazzband:master' into patch-1
2 parents b55c488 + 817eb40 commit 4f5f0ce

File tree

8 files changed

+208
-222
lines changed

8 files changed

+208
-222
lines changed

‎.pre-commit-config.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/psf/black
3-
rev: 23.12.1
3+
rev: 24.2.0
44
hooks:
55
- id: black
66
exclude: ^(oauth2_provider/migrations/|tests/migrations/)
@@ -21,7 +21,7 @@ repos:
2121
- id: isort
2222
exclude: ^(oauth2_provider/migrations/|tests/migrations/)
2323
- repo: https://github.com/PyCQA/flake8
24-
rev: 6.1.0
24+
rev: 7.0.0
2525
hooks:
2626
- id: flake8
2727
exclude: ^(oauth2_provider/migrations/|tests/migrations/)

‎docs/oidc.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ just return the same claims as the ID token.
239239

240240
To configure all of these things we need to customize the
241241
``OAUTH2_VALIDATOR_CLASS`` in ``django-oauth-toolkit``. Create a new file in
242-
our project, eg ``my_project/oauth_validator.py``::
242+
our project, eg ``my_project/oauth_validators.py``::
243243

244244
from oauth2_provider.oauth2_validators import OAuth2Validator
245245

‎docs/rfc.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Custom Sphinx documentation module to link to parts of the OAuth2 RFC.
33
"""
4+
45
fromdocutilsimportnodes
56

67

‎oauth2_provider/views/generic.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ class ReadWriteScopedResourceView(ReadWriteScopedResourceMixin, ProtectedResourc
3636

3737

3838
classClientProtectedResourceView(ClientProtectedResourceMixin, OAuthLibMixin, View):
39-
4039
"""View for protecting a resource with client-credentials method.
4140
This involves allowing access tokens, Basic Auth and plain credentials in request body.
4241
"""
@@ -45,7 +44,6 @@ class ClientProtectedResourceView(ClientProtectedResourceMixin, OAuthLibMixin, V
4544

4645

4746
classClientProtectedScopedResourceView(ScopedResourceMixin, ClientProtectedResourceView):
48-
4947
"""Impose scope restrictions if client protection fallsback to access token."""
5048

5149
pass

‎oauth2_provider/views/mixins.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,6 @@ def get_scopes(self, *args, **kwargs):
279279

280280

281281
classClientProtectedResourceMixin(OAuthLibMixin):
282-
283282
"""Mixin for protecting resources with client authentication as mentioned in rfc:`3.2.1`
284283
This involves authenticating with any of: HTTP Basic Auth, Client Credentials and
285284
Access token in that order. Breaks off after first validation.

‎tests/app/idp/idp/urls.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
1. Import the include() function: from django.urls import include, path
1515
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
1616
"""
17+
1718
fromdjango.contribimportadmin
1819
fromdjango.urlsimportinclude, path
1920

0 commit comments

Comments
(0)