<div dir="ltr">Hello,I figured out with URL schemes, I have never used them before, that&#39;s cool :)  VK is inconvenient, I have spent a lot of time on redirect uri. <div>I have received a notification in application !)</div><div><br></div><div><br></div><div>P.S The pictures in your blog are very nice)</div><div><br></div><div>Denis.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-03-10 23:41 GMT+03:00 Денис Карпенко <span dir="ltr">&lt;<a href="mailto:banddk1@gmail.com" target="_blank">banddk1@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Oh, yes, I am understand now.<div>Thank you<span style="white-space:nowrap"><b> </b>Corinne)</span></div><div><span style="white-space:nowrap"><br></span></div><div><span style="white-space:nowrap">Denis.</span></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2015-03-10 22:31 GMT+03:00 Corinne Krych <span dir="ltr">&lt;<a href="mailto:corinnekrych@gmail.com" target="_blank">corinnekrych@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Denis,<br>
<br>
If you read my blog post [1] I think you manage the &quot;step1: authz code”. At this stage you don’t have an access token but an very temporary authorization code.<br>
Now to be able to re-enter the app, you should define on url schema that matches your redirect_uri as explained in [2].<br>
<br>
When working with different providers, the main challenge is to understand how they register/configuration works. for example Facebook expect a redirect_uri that matches the pattern: fb+client_id whereas Google recommand the usage of bundle id as redirect_ui.<br>
<br>
Once you manage to re-enter the app, this code will be extracted from parameter and then can be used in step2 to exchange it for an access token (that part is taken care for you by the oauth2 lib).<br>
<br>
++<br>
Corinne<br>
[1] <a href="http://corinnekrych.blogspot.fr/2014/11/oauth2-for-android-and-ios-with-keycloak.html" target="_blank">http://corinnekrych.blogspot.fr/2014/11/oauth2-for-android-and-ios-with-keycloak.html</a><br>
[2] <a href="https://github.com/aerogear/aerogear-ios-cookbook/tree/master/Shoot#step3-configure-shoot-app-ios-client" target="_blank">https://github.com/aerogear/aerogear-ios-cookbook/tree/master/Shoot#step3-configure-shoot-app-ios-client</a><br>
<span><br>
&gt; On 10 Mar 2015, at 19:50, Денис Карпенко &lt;<a href="mailto:banddk1@gmail.com" target="_blank">banddk1@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi everyone!) I try to add VK config in IOS-OAuth2, my application opens safari and asks for permission, I click ‘ok’ and then browser opens page with access token, and that is it  Browser remains open and I can’t get token in application. What could be the problem ?)<br>
&gt;<br>
&gt; Denis.<br>
</span>&gt; _______________________________________________<br>
&gt; aerogear-dev mailing list<br>
&gt; <a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
<br>
<br>
_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></blockquote></div><br></div>
</div></div></blockquote></div><br></div>