<div dir="ltr"><div>It&#39;s all standard OAuth2 stuff so there&#39;s plenty of material on Google that describes how to do this.</div><div><br></div>That doesn&#39;t return a token it returns an authorization code. Take a look at:<div><br></div><div><a href="https://tools.ietf.org/html/rfc6749#section-3.1">https://tools.ietf.org/html/rfc6749#section-3.1</a><br></div><div><br></div><div>That&#39;ll show you how to get the tokens. Then:</div><div><br></div><div><a href="https://tools.ietf.org/html/rfc6749#section-6">https://tools.ietf.org/html/rfc6749#section-6</a><br></div><div><br></div><div>Will show you how to refresh the token.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 12 September 2016 at 00:23, Sam McCollum <span dir="ltr">&lt;<a href="mailto:smccollum@westmont.edu" target="_blank">smccollum@westmont.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div class="gmail_quote"><div dir="ltr">Hi All,<span><div><br></div><div>I&#39;m working on a project with some fellow students and we are attempting to use Keycloak to manage the authentication and authorization for our java backend running on Wildfly. We&#39;ve managed to retrieve a token which we believe to be an offline token by opening the following URL on the mobile client and intercepting a custom URL schema: <a href="http://keycloak.cs.westmont.edu/auth/realms/Westmont/protocol/openid-connect/auth?redirect_uri=app.test://login&amp;response_type=code&amp;client_id=TestApp&amp;scope=offline_access" target="_blank">http://keycloak.cs.westmont.ed<wbr>u/auth/realms/Westmont/protoco<wbr>l/openid-connect/auth?redirect<wbr>_uri=app.test://login&amp;response<wbr>_type=code&amp;client_id=TestApp&amp;s<wbr>cope=offline_access</a></div><div><br></div></span><div>We hope that this doesn&#39;t bother you, but we are really struggling to figure out how to request the access token from the refresh token using the REST API as we haven&#39;t found any documentation or tutorials covering this use case.</div><div><br></div><div>We are also hoping to open source our efforts at building a library for mobile apps to use with Keycloak.</div><span><div><br></div><div>Please let us know if there is anything else you need to understand from us.</div><div><br></div></span><div>Thanks in advance,</div><div><br></div><div>Sam</div></div>
</div><br></div>
</div><br></div>
<br>______________________________<wbr>_________________<br>
keycloak-user mailing list<br>
<a href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/keycloak-user" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/keycloak-user</a><br></blockquote></div><br></div>