Giter VIP home page Giter VIP logo

Comments (9)

merqlove avatar merqlove commented on July 22, 2024 1

Yep, seems that it's bug of VK.api version, which is supported by current gem.
Manual said:

offline 
(+65536)	Access to API at any time (you will receive expires_in = 0 in this case).

from omniauth-vkontakte.

neumachen avatar neumachen commented on July 22, 2024 1

image

Here's a sample, it is asking me for offline access but like I said the fields denoting expiry of the token don't return what it's supposed to return.

from omniauth-vkontakte.

merqlove avatar merqlove commented on July 22, 2024 1

Try to debug it, by log' and/or debugger. You will see the true picture. You have to determine where is the method or option within Intridea Oauth2, which is responsive for expiration.

from omniauth-vkontakte.

merqlove avatar merqlove commented on July 22, 2024

Sure, i see here no logic about offline pattern. PR is welcome 👍

from omniauth-vkontakte.

neumachen avatar neumachen commented on July 22, 2024

Where do I start? Sorry, not familiar with this lib.

from omniauth-vkontakte.

merqlove avatar merqlove commented on July 22, 2024

@magicalbanana look here:

Code parts:

from omniauth-vkontakte.

neumachen avatar neumachen commented on July 22, 2024

You know thing is when I do authorize an app with VK I do see the request for offline access but it still returns an expires_at and expires.

from omniauth-vkontakte.

neumachen avatar neumachen commented on July 22, 2024

Yeah, so how do I fix this? If there's any.

from omniauth-vkontakte.

neumachen avatar neumachen commented on July 22, 2024

I think I got it, the attribute that returns it is expires_in not expires_at as mentioned in the dev guide.

And this line here:

https://github.com/intridea/oauth2/blob/bddb74857064749184942e2727f35d0d2ea2a534/lib/oauth2/access_token.rb#L50

Sets the expires at, but thing is there is a returned expires_in and it's not nil so that's why it's still being set.

from omniauth-vkontakte.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.