Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#1395)
Browse files Browse the repository at this point in the history
* [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>
  • Loading branch information
pre-commit-ci[bot] authored Jan 29, 2024
1 parent 07d2715 commit 843a1c1
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 4 deletions.
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

0 comments on commit 843a1c1

Please sign in to comment.