Skip to content

Commit

Permalink
Further improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
enolfc committed Oct 17, 2023
1 parent 6b9bc2e commit f4ea0fa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cloud-info/cloud_info_catchall/token_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ def generate_tokens(oidc_config, scopes, tokens, token_ttl, secrets):
# not our thing
if not isinstance(secrets[s], dict):
continue
if "refresh_token" in secrets[s]:
# ignore those that have refresh token
continue
token = tokens.get(s, {}).get("access_token", None)
if not valid_token(token, oidc_config, token_ttl):
logging.info("Token needs refreshing")
Expand Down

0 comments on commit f4ea0fa

Please sign in to comment.