Comments (9)
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.
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.
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.
Sure, i see here no logic about offline pattern. PR is welcome 👍
from omniauth-vkontakte.
Where do I start? Sorry, not familiar with this lib.
from omniauth-vkontakte.
@magicalbanana look here:
- https://github.com/zquestz/omniauth-google-oauth2/search?utf8=✓&q=offline
Example Implementation
Code parts:
- https://github.com/mamantoha/omniauth-vkontakte/blob/master/lib/omniauth/strategies/vkontakte.rb#L80
from omniauth-vkontakte.
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.
Yeah, so how do I fix this? If there's any.
from omniauth-vkontakte.
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:
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)
- Error on callback redirect HOT 1
- Unneeded API calls
- Update gem on rubygems please HOT 2
- Нет email адреса
- Работает ли данный модуль со Standalone приложениями? HOT 2
- Could not find a strategy with name `Vkontakte'. Please ensure it is required or explicitly set it using the :strategy_class option. (Devise::OmniAuth::StrategyNotFound) HOT 1
- redirect_uri is invalid, please pass same redirect_uri, you used in authorize method HOT 5
- ERROR -- omniauth: (vkontakte) Authentication failure! csrf_detected: OmniAuth::Strategies::OAuth2::CallbackError, csrf_detected | CSRF detected HOT 2
- Getting 502 on callback HOT 2
- Работа в develompent HOT 7
- invalid_credentials: OAuth2::Error, invalid_grant: Code is invalid or expired HOT 1
- Add Rubocop
- Пустой request.env['omniauth.auth'] HOT 3
- client_id is incorrect HOT 5
- Bump omniauth-oauth2 version HOT 1
- [Question] Send token straight to omniauth_callback
- иногда выскакивает NoRawData HOT 2
- Creating a gem release for omniauth-oauth2 dependency update HOT 2
- {"error":"invalid_client","error_description":"client_id is undefined"} HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from omniauth-vkontakte.