Hello Denis,
If you read my blog post [1] I think you manage the "step1: authz code”. At this
stage you don’t have an access token but an very temporary authorization code.
Now to be able to re-enter the app, you should define on url schema that matches your
redirect_uri as explained in [2].
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.
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).
++
Corinne
[1]
http://corinnekrych.blogspot.fr/2014/11/oauth2-for-android-and-ios-with-k...
[2]
https://github.com/aerogear/aerogear-ios-cookbook/tree/master/Shoot#step3...
On 10 Mar 2015, at 19:50, Денис Карпенко <banddk1(a)gmail.com>
wrote:
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 ?)
Denis.
_______________________________________________
aerogear-dev mailing list
aerogear-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-dev