@@ -420,12 +420,12 @@ def post_token(self):
420
420
return self .server .create_token_response (self .request )
421
421
422
422
def __researchDIRACGroup (self , extSession , chooseScope , state ):
423
- """Research DIRAC groups for authorized user
423
+ """Look for DIRAC groups of a user already authorized by an Identity Provider
424
424
425
425
:param dict extSession: ended authorized external IdP session
426
426
427
427
:return: -- will return (None, response) to provide error or group selector
428
- will return (grant_user, request) to contionue authorization with choosed group
428
+ will return (grant_user, request) to continue authorization with choosed group
429
429
"""
430
430
# Base DIRAC client auth session
431
431
firstRequest = createOAuth2Request (extSession ["firstRequest" ])
@@ -437,7 +437,7 @@ def __researchDIRACGroup(self, extSession, chooseScope, state):
437
437
provider = firstRequest .provider
438
438
self .log .debug ("The following groups found" , f"for { username } : { ', ' .join (firstRequest .groups )} " )
439
439
440
- # Research Group
440
+ # Look for DIRAC groups valid for the user
441
441
result = getGroupsForUser (username )
442
442
if not result ["OK" ]:
443
443
return None , self .server .handle_response (
@@ -469,7 +469,7 @@ def __researchDIRACGroup(self, extSession, chooseScope, state):
469
469
firstRequest .addScopes ([f"g:{ validGroups [0 ]} " ])
470
470
return extSession ["authed" ], firstRequest
471
471
472
- # Else give user chanse to choose group in browser
472
+ # Else give user a chance to choose a group in the browser
473
473
with dom .div (cls = "row mt-5 justify-content-md-center align-items-center" ) as tag :
474
474
for group in sorted (validGroups ):
475
475
vo , gr = group .split ("_" )
0 commit comments