-
-
Notifications
You must be signed in to change notification settings - Fork 231
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's time-to-live/expire time configuration #104
Comments
Yes, currently we have only these options to control the token expire time. Fusio has multiple endpoints where you can obtain an access token. The config maps to the following endpoints:
every token which you obtain at such an endpoint expires after the value in the config. I.e. the backend token expires after 1 hour. |
So, we do not have option to control refresh token's expire time yet? |
Hi, yes this is correct. Currently the refresh token expire time is the |
I have not confirm it yet, but I think the current refresh token expired at the same time with access token. If that was right, it should not be worked that way. refresh token should lived longer that access token, so when the access token is expired, I can renew the access token using the refresh token. I have an app that should refresh the access token when the access token become invalid. But It always say that the refresh token was invalid. |
yes, correct.
so if you request an access token, the response contains the {
"access_token": "String",
"token_type": "String",
"expires_in": "String",
"refresh_token": "String",
} I would probably guess that in your case you have used the refresh token to late. That means the refresh token is also bound to the |
I see. |
Yes, I think it is probably a good idea to separate the expire time of the refresh and access token. I think the best way would be to simply add a new config i.e. |
So in the latest release we have now a |
How to configure refresh token's time-to-live/expire time?
In
configuration.php
, I only found:The text was updated successfully, but these errors were encountered: