Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nk20
Manage
Activity
Members
Labels
Plan
Issues
31
Issue boards
Milestones
Wiki
Code
Merge requests
7
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BDE
nk20
Commits
bbbdcc72
Commit
bbbdcc72
authored
8 months ago
by
korenstin
Browse files
Options
Downloads
Patches
Plain Diff
linters
parent
feeb9904
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!230
nk20 v2.0.0 with django 4.2
Pipeline
#14042
passed with stages
in 28 minutes
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
apps/permission/scopes.py
+2
-2
2 additions, 2 deletions
apps/permission/scopes.py
with
2 additions
and
2 deletions
apps/permission/scopes.py
+
2
−
2
View file @
bbbdcc72
...
...
@@ -35,6 +35,8 @@ class PermissionScopes(BaseScopes):
class
PermissionOAuth2Validator
(
OAuth2Validator
):
oidc_claim_scope
=
None
# fix breaking change of django-oauth-toolkit 2.0.0
def
validate_scopes
(
self
,
client_id
,
scopes
,
client
,
request
,
*
args
,
**
kwargs
):
"""
User can request as many scope as he wants, including invalid scopes,
...
...
@@ -44,8 +46,6 @@ class PermissionOAuth2Validator(OAuth2Validator):
subset of permissions.
"""
oidc_claim_scope
=
None
# fix breaking change of django-oauth-toolkit 2.0.0
valid_scopes
=
set
()
for
t
in
Permission
.
PERMISSION_TYPES
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment