ppazos / cabolabs-ehrserver

Open platform to manage and share standardized clinical data, designed by @ppazos at CaboLabs Health Informatics.
https://cabolabs.com
Apache License 2.0
177 stars 110 forks source link

Check API token expiration #1045

Closed ppazos closed 4 years ago

ppazos commented 4 years ago

On the RestAuthInterceptor and ask for a reissue.

https://stackoverflow.com/questions/8855297/token-expired-json-rest-api-error-code

https://www.oauth.com/oauth2-servers/access-tokens/access-token-response/

https://www.oauth.com/oauth2-servers/making-authenticated-requests/refreshing-an-access-token/

ppazos commented 4 years ago

Done in the stateless plugin https://github.com/ppazos/grails-security-stateless-ng/commit/194265c2f23719fd090e27e041dec502177283ce