mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-06-17 23:39:46 +02:00
linters
This commit is contained in:
parent
092cc37320
commit
df0d886db9
@ -1,5 +1,6 @@
|
||||
# Copyright (C) 2018-2025 by BDE ENS Paris-Saclay
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
from oauth2_provider.oauth2_validators import OAuth2Validator
|
||||
from oauth2_provider.scopes import BaseScopes
|
||||
from member.models import Club
|
||||
@ -40,6 +41,7 @@ class PermissionScopes(BaseScopes):
|
||||
scopes.append('openid')
|
||||
return scopes
|
||||
|
||||
|
||||
class PermissionOAuth2Validator(OAuth2Validator):
|
||||
oidc_claim_scope = OAuth2Validator.oidc_claim_scope
|
||||
oidc_claim_scope.update({"name": 'openid',
|
||||
|
Loading…
x
Reference in New Issue
Block a user