Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 29, 2024
1 parent 453f32c commit 158a596
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/rfc.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Custom Sphinx documentation module to link to parts of the OAuth2 RFC.
"""

from docutils import nodes


Expand Down
2 changes: 0 additions & 2 deletions oauth2_provider/views/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ class ReadWriteScopedResourceView(ReadWriteScopedResourceMixin, ProtectedResourc


class ClientProtectedResourceView(ClientProtectedResourceMixin, OAuthLibMixin, View):

"""View for protecting a resource with client-credentials method.
This involves allowing access tokens, Basic Auth and plain credentials in request body.
"""
Expand All @@ -45,7 +44,6 @@ class ClientProtectedResourceView(ClientProtectedResourceMixin, OAuthLibMixin, V


class ClientProtectedScopedResourceView(ScopedResourceMixin, ClientProtectedResourceView):

"""Impose scope restrictions if client protection fallsback to access token."""

pass
1 change: 0 additions & 1 deletion oauth2_provider/views/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,6 @@ def get_scopes(self, *args, **kwargs):


class ClientProtectedResourceMixin(OAuthLibMixin):

"""Mixin for protecting resources with client authentication as mentioned in rfc:`3.2.1`
This involves authenticating with any of: HTTP Basic Auth, Client Credentials and
Access token in that order. Breaks off after first validation.
Expand Down
1 change: 1 addition & 0 deletions tests/app/idp/idp/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""

from django.contrib import admin
from django.urls import include, path

Expand Down

0 comments on commit 158a596

Please sign in to comment.