Skip to content

Commit 34d20d8

Browse files
committed
fix: better English comments
1 parent 540cdd9 commit 34d20d8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/DIRAC/FrameworkSystem/Service/TokenManagerHandler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def export_getToken(
252252
result["Value"],
253253
)
254254
return result
255-
# Not found any token associated with the found user ID
255+
# Did not find any token associated with the found user ID
256256
err.append(result.get("Message", f"No token found for {uid}"))
257257
# Collect all errors when trying to get a token, or if no user ID is registered
258258
return S_ERROR("; ".join(err or [f"No user ID found for {username}"]))

src/DIRAC/FrameworkSystem/private/authorization/AuthServer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,8 +439,8 @@ def validateIdentityProvider(self, request, provider):
439439
# Find identity provider for group
440440
groupProvider = getIdPForGroup(request.group) if request.groups else None
441441

442-
# If requested access token for group that is not registered in any identity provider
443-
# or the requested provider does not match the group return error
442+
# If access token is requested for a group that is not registered in any identity provider
443+
# or the requested provider does not match the group, return error
444444
if request.group and not groupProvider and "proxy" not in request.scope:
445445
raise Exception(f"The {request.group} group belongs to the VO that is not tied to any Identity Provider.")
446446

0 commit comments

Comments
 (0)