[aerogear-dev] IOS-OAuth2( vk.com)
Денис Карпенко
banddk1 at gmail.com
Wed Mar 11 11:24:38 EDT 2015
Hello,I figured out with URL schemes, I have never used them before, that's
cool :) VK is inconvenient, I have spent a lot of time on redirect uri.
I have received a notification in application !)
P.S The pictures in your blog are very nice)
Denis.
2015-03-10 23:41 GMT+03:00 Денис Карпенко <banddk1 at gmail.com>:
> Oh, yes, I am understand now.
> Thank you Corinne)
>
> Denis.
>
> 2015-03-10 22:31 GMT+03:00 Corinne Krych <corinnekrych at gmail.com>:
>
>> 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-keycloak.html
>> [2]
>> https://github.com/aerogear/aerogear-ios-cookbook/tree/master/Shoot#step3-configure-shoot-app-ios-client
>>
>> > On 10 Mar 2015, at 19:50, Денис Карпенко <banddk1 at 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 at lists.jboss.org
>> > https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>
>>
>> _______________________________________________
>> aerogear-dev mailing list
>> aerogear-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20150311/7cc3480d/attachment-0001.html
More information about the aerogear-dev
mailing list