Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refresh token automatically if token is expired #4

Open
lmammino opened this issue Sep 28, 2022 · 0 comments
Open

Refresh token automatically if token is expired #4

lmammino opened this issue Sep 28, 2022 · 0 comments
Labels
priority important issue to resolve ASAP

Comments

@lmammino
Copy link
Member

lmammino commented Sep 28, 2022

This requires the following information:

  • grant_type: refresh_token
  • refresh_token
  • client_id
  • client_secret
  • scope: openid
  • audience: (same value as the client_id)

Teoretically a user could refresh a token by themselves by performing the following request:

curl -v -d 'grant_type=refresh_token&refresh_token=XXXX&client_id=XXX&client_secret=XXX&scope=openid&audience=XXX' -H 'Content-Type: application/x-www-form-urlencoded' 'https://<cognito_user_pool_url>/oauth2/token'

But since a user won't have access to the client_secret this is something that will need to be done server side and there needs to be an API exposed to the user to do that...

@lmammino lmammino added the priority important issue to resolve ASAP label Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority important issue to resolve ASAP
Projects
None yet
Development

No branches or pull requests

1 participant