<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">You can use that in browser application
with authorization_code too. That's not a problem. <br>
<br>
For refresh_token you can't at this point. The offline token
itself is special kind of refresh token (It's refresh token which
never expires). So if you send refresh request with offline token,
you will automatically receive new offline token. Otherwise if you
send refresh request with "classic" refresh token, you will
receive another classic refresh token. I suggest to look at
documentation
<a class="moz-txt-link-freetext" href="http://keycloak.github.io/docs/userguide/keycloak-server/html/timeouts.html#offline-access">http://keycloak.github.io/docs/userguide/keycloak-server/html/timeouts.html#offline-access</a>
and try the example (referenced from documentation). The example
is browser application and it uses authorization_code .<br>
<br>
Marek<br>
<br>
On 11/11/15 19:19, robinfernandes . wrote:<br>
</div>
<blockquote
cite="mid:CAFOTW4ZUX9xmYF=aaZ_K_dZ6VU_74mj+cDSx3535JDUTFGmDUQ@mail.gmail.com"
type="cite">
<div dir="ltr">Hi All,<br>
<br>
Just wanted a clarification regarding generation of offline
tokens.
<div><br>
1. Can we use the <b>grant_type = authorization_code</b> or<b>
grant_type = refresh_token</b> to get the offline tokens? Or
is it only available for grant_type = password &
grant_type = client_credentials?
<div><br>
</div>
<div>2. Is there a way to give offline token to a particular
user without using direct access grants?<br>
<br>
Thanks,<br>
Robin</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
keycloak-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-user">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></pre>
</blockquote>
<br>
</body>
</html>