Skip to content

Commit f39484c

Browse files
committed
Do not attempt to use a refresh token that is non-decodable
1 parent b00bc3e commit f39484c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/galaxy/authnz/custos_authnz.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ def refresh(self, trans, custos_authnz_token):
133133
return False
134134
except jwt.exceptions.DecodeError:
135135
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
137+
return False
136138

137139
oauth2_session = self._create_oauth2_session()
138140
token_endpoint = self.config.token_endpoint

0 commit comments

Comments
 (0)