Skip to content

Commit a1d857c

Browse files
AI suggested fix
Signed-off-by: Lukasz Gryglicki <[email protected]> Assisted by [OpenAI](https://platform.openai.com/) Assisted by [GitHub Copilot](https://github.com/features/copilot)
1 parent a5b95f4 commit a1d857c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cla-backend/cla/auth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ def authenticate_user(headers):
125125
cla.log.warning(f"username claim not found in {auth0_username_claim}, trying {alt_claim}")
126126
username = payload.get(alt_claim)
127127
if username is None:
128-
cla.log.error(f"username claim not found in alternate source {auth0_username_claim}")
129-
raise AuthError(f"username claim not found in {auth0_username_claim}")
128+
cla.log.error(f"username claim not found in alternate source {alt_claim}")
129+
raise AuthError('username claim not found')
130130
else:
131131
cla.log.error(f"username claim not found in {auth0_username_claim}")
132132
raise AuthError('username claim not found')

0 commit comments

Comments
 (0)