Skip to content

Commit 7041b6b

Browse files
committed
Log warning instead of error; add details to messsage.
1 parent ed38195 commit 7041b6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/galaxy/authnz/custos_authnz.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ def refresh(self, trans, custos_authnz_token):
132132
# in the future we might want to log out the user here
133133
return False
134134
except jwt.exceptions.DecodeError:
135-
log.error("Refresh token is non-decodable")
136-
# If the refresh token is non-decodable, we do not use it. See discussion in https://github.com/galaxyproject/galaxy/pull/20821
135+
log.warning("Refresh token cannot be decoded. Galaxy does not support non-decodable refresh tokens.")
136+
# If the refresh token is non-decodable, we do not use it because we cannot reliably determine its expiration date. See discussion in https://github.com/galaxyproject/galaxy/pull/20821
137137
return False
138138

139139
oauth2_session = self._create_oauth2_session()

0 commit comments

Comments
 (0)