Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.1.1
hooks:
- id: black
exclude: ^(oauth2_provider/migrations/|tests/migrations/)
Expand Down
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