Skip to content

Commit

Permalink
Add the subject token type
Browse files Browse the repository at this point in the history
  • Loading branch information
enolfc committed Jul 17, 2024
1 parent 04fa11e commit 4997bbb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions egi_notebooks_hub/egiauthenticator.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ async def exchange_for_refresh_token(self, access_token):
dict(
grant_type="urn:ietf:params:oauth:grant-type:token-exchange",
requested_token_type="urn:ietf:params:oauth:token-type:refresh_token",
subject_token_type="urn:ietf:params:oauth:token-type:access_token",
subject_token=access_token,
# beware that this requires the "offline_access" or similar
# to be included, otherwise the refresh token will not be
Expand Down

0 comments on commit 4997bbb

Please sign in to comment.