Getting a refresh token when trying to generate an offline token using JavaScript code
Issue
-
I'm getting a
refresh token
(instead of an expectedoffline token
) when trying to generate the offline token using the below JS code:JS code: keycloak.login({'scope': 'offline_access'}).success(function(authenticated) { }).error(function() { alert('Init Error'); });
-
Any idea on how to get
offline token
(and not therefresh
one) ?
Environment
- Red Hat Single Sign-On (RH-SSO)
- 7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.