Skip to content

Commit

Permalink
fix(plugins): stored oidc token conflicts (#1232)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunato authored Jun 21, 2024
1 parent 03306fa commit 4ff098f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions eodag/plugins/authentication/openid_connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,11 @@ class TokenInfo(TypedDict, total=False):
access_token_expiration: float
refresh_token_expiration: float

token_info: TokenInfo = {}
# already retrieved token store, to be used if authenticate() fails (OTP use-case)
retrieved_token: str = ""

def __init__(self, provider: str, config: PluginConfig) -> None:
super(OIDCRefreshTokenBase, self).__init__(provider, config)
self.session = requests.Session()
# already retrieved token info store
self.token_info: OIDCRefreshTokenBase.TokenInfo = {}

def _get_access_token(self) -> str:
current_time = datetime.now()
Expand Down

0 comments on commit 4ff098f

Please sign in to comment.