Skip to content

Commit 7423c32

Browse files
author
Kevin Hannegan
committed
confidential client refresh tokens
1 parent f463f93 commit 7423c32

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

presalytics/client/api.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,8 @@ def refresh_token(self):
320320
else:
321321
if self.direct_grant:
322322
token = self.oidc.token(username=self.username, password=self.password)
323+
elif self.confidential_client:
324+
token = self.oidc.client_credentials_token()
323325
elif self._delegate_login:
324326
raise presalytics.lib.exceptions.ApiError("Unauthorized. Token has expired", status_code=401)
325327
else:

0 commit comments

Comments
 (0)