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

Is there a refresh token concept for public purpose #104

Closed
kounelios13 opened this issue Aug 25, 2019 · 4 comments
Closed

Is there a refresh token concept for public purpose #104

kounelios13 opened this issue Aug 25, 2019 · 4 comments

Comments

@kounelios13
Copy link

Hello.I have recently started studying Paseto.As a person coming from a JWT background I am used to the refresh token idea(when my JWT expires I get a new one by providing a special key)

Now as an alternative for JWT authentication paseto provides the public purpose tokens.Now my question is this. When a token expires what should I do ? Is there any way to refresh that token or do I need to prompt the user to enter their login credentials so I can sign a new token?

@paragonie-scott
Copy link
Member

Your question is from an OAuth2 background, not a JWT background.

JWT doesn't have a concept of request/access tokens. Other standards do. Those standards just so happen to use JWT as a means of encoding these tokens.

You can use a PASETO for the same purpose, yes.

The plan is, after the XChaCha20 RFC passes, to focus on formalizing PASETO as an IETF RFC and then get it into OpenID Connect as a JWT alternative.

@kounelios13 kounelios13 changed the title Is there a refresh token concept for public person Is there a refresh token concept for public purpose Aug 25, 2019
@paragonie-security
Copy link
Contributor

Should this question live here (the PHP repository), or should we move it to the specification repository?

@kounelios13
Copy link
Author

I believe it should be moved in the specification repository

@paragonie-security
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants