mirror of
				https://gitlab.crans.org/bde/nk20
				synced 2025-11-03 17:08:47 +01:00 
			
		
		
		
	linters
This commit is contained in:
		@@ -35,6 +35,8 @@ class PermissionScopes(BaseScopes):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class PermissionOAuth2Validator(OAuth2Validator):
 | 
					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):
 | 
					    def validate_scopes(self, client_id, scopes, client, request, *args, **kwargs):
 | 
				
			||||||
        """
 | 
					        """
 | 
				
			||||||
        User can request as many scope as he wants, including invalid scopes,
 | 
					        User can request as many scope as he wants, including invalid scopes,
 | 
				
			||||||
@@ -44,8 +46,6 @@ class PermissionOAuth2Validator(OAuth2Validator):
 | 
				
			|||||||
        subset of permissions.
 | 
					        subset of permissions.
 | 
				
			||||||
        """
 | 
					        """
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        oidc_claim_scope = None  # fix breaking change of django-oauth-toolkit 2.0.0
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        valid_scopes = set()
 | 
					        valid_scopes = set()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        for t in Permission.PERMISSION_TYPES:
 | 
					        for t in Permission.PERMISSION_TYPES:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user