Skip to content

Commit 843a1c1

Browse files
[pre-commit.ci] pre-commit autoupdate (#1395)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/psf/black: 23.12.1 → 24.1.1](psf/black@23.12.1...24.1.1) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 07d2715 commit 843a1c1

File tree

5 files changed

+3
-4
lines changed

5 files changed

+3
-4
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
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.1.1
44
hooks:
55
- id: black
66
exclude: ^(oauth2_provider/migrations/|tests/migrations/)

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
from docutils import nodes
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
class ClientProtectedResourceView(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
class ClientProtectedScopedResourceView(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
class ClientProtectedResourceMixin(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
from django.contrib import admin
1819
from django.urls import include, path
1920

0 commit comments

Comments
 (0)