I'm doing the same as Martin for my Feedly client.
On auth failure, parameters attached to redirect_uri (GET method) are
different; after detecting your redirect_uri you should analyze it and
decode any (eventual) parameters. Auth token is among those, by the way.


On Fri, Feb 14, 2014 at 10:35 AM, Oleg Linkin
<maledictusdema...@gmail.com>wrote:

> I try to do as you adviced me but if I don't give access to application a
> get the next url changes:
> 1) https://getpocket.com/auth/approve_access
> 2) linksbag:/authorizationFinished - this is my redirect_uri
>
> If I give access to application a get the next url changes:
> 1) https://getpocket.com/auth/approve_access
> 2) linksbag:/authorizationFinished
>
> All this changes are equal. I can't detect was access grant or not to
> application
>
> 2014-02-14 12:10 GMT+03:00 Martin Grimme <martin.gri...@gmail.com>:
>
> Hi,
>>
>> the way I'm doing it in Cargo Dock for Dropbox is basically having the
>> SilicaWebview watch the uri property and react to it in the
>> onUriChanged signal handler, if the redirect_uri matches the one I'm
>> expecting.
>>
>>
>> Martin
>>
>>
>> 2014-02-14 9:32 GMT+01:00, Oleg Linkin <maledictusdema...@gmail.com>:
>> > Hi, all
>> > I am developing client for getPocket.com service and I have problem with
>> > auth.
>> > After login service send auth status (grant permissions on not to
>> > application) via redirect_uri. How I should handle it or what sequence
>> of
>> > actions in this case?
>> >
>> _______________________________________________
>> SailfishOS.org Devel mailing list
>>
>
>
> _______________________________________________
> SailfishOS.org Devel mailing list
>



-- 
Luca Donaggio
_______________________________________________
SailfishOS.org Devel mailing list

Reply via email to