[keycloak-user] Getting offline token alongside refresh token

Jesus Bernal Jesus.Bernal at checkit.net
Wed Aug 2 12:33:12 EDT 2017


Hi,

I am using Authorisation Code Flow in my web application. I would like to get a refresh token for the web app itself but also an offline token that I will save in the database so I can use it later on for an offline task.

However I am struggling with that. I cannot use grant-type password because I don’t want to ask the user again to enter his credentials and also authorisation code is only one-time use so I cannot integrate it with the current flow. Is there any other way to generate an offline token from a different token? I have tried using grant type refresh-token with scope offline access but that didn’t work.

Thanks in advance.

Best Regards,

Jesus Bernal

Senior Software Engineer
jesus.bernal at checkit.net<mailto:jesus.bernal at checkit.net>

Elektron Technology
Broers Building, JJ Thomson Avenue, Cambridge, CB3 0FA, UK
www.elektron-technology.com<http://www.elektron-technology.com/>





______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________


More information about the keycloak-user mailing list