Skip to content

Commit

Permalink
fix(openid_connect): compare only offset-aware datetimes (#1418)
Browse files Browse the repository at this point in the history
  • Loading branch information
alambare authored Nov 25, 2024
1 parent d1e649e commit f3556af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eodag/plugins/authentication/openid_connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ def __init__(self, provider: str, config: PluginConfig) -> None:
self.session = requests.Session()

self.access_token = ""
self.access_token_expiration = datetime.min
self.access_token_expiration = datetime.min.replace(tzinfo=timezone.utc)

self.refresh_token = ""
self.refresh_token_expiration = datetime.min
self.refresh_token_expiration = datetime.min.replace(tzinfo=timezone.utc)

try:
response = requests.get(self.config.oidc_config_url)
Expand Down

0 comments on commit f3556af

Please sign in to comment.