@@ -144,8 +144,8 @@ def generateProxyOrToken(
144
144
# Try to return user proxy if proxy scope present in the authorization request
145
145
if not isDownloadablePersonalProxy ():
146
146
raise OAuth2Error ("You can't get proxy, configuration(downloadablePersonalProxy) not allow to do that." )
147
- sLog .debug (
148
- "Try to query %s@%s proxy%s" % (user , group , ("with lifetime:%s" % lifetime ) if lifetime else "" )
147
+ self . log .debug (
148
+ "Try to query %s@%s proxy%s" % (user , group , (" with lifetime:%s" % lifetime ) if lifetime else "" )
149
149
)
150
150
# Get user DNs
151
151
result = getDNForUsername (userName )
@@ -327,7 +327,9 @@ def create_json_request(self, request):
327
327
def validate_requested_scope (self , scope , state = None ):
328
328
"""See :func:`authlib.oauth2.rfc6749.authorization_server.validate_requested_scope`"""
329
329
# We also consider parametric scope containing ":" charter
330
- extended_scope = list_to_scope ([re .sub (r":.*$" , ":" , s ) for s in scope_to_list (scope or "" )])
330
+ extended_scope = list_to_scope (
331
+ [re .sub (r":.*$" , ":" , s ) for s in scope_to_list ((scope or "" ).replace ("+" , " " ))]
332
+ )
331
333
super (AuthServer , self ).validate_requested_scope (extended_scope , state )
332
334
333
335
def handle_response (self , status_code = None , payload = None , headers = None , newSession = None , delSession = None ):
0 commit comments