ruby on rails 3 - Devise and OmniAuth. Vkontakte scope problem -
i got setup using rails 3, devise , omniauth via https://github.com/plataformatec/devise/wiki/omniauth:-overview.
i want integrate app vkontakte.ru. when i'm using config goes fine can create user , can access user data.
config.omniauth :vkontakte, 'xxx', 'xxx'
but when i'm adding scope param
config.omniauth :vkontakte, 'xxx', 'xxx', { :scope => "notify,friends,photos,notes,docs,pages,wall,offline" }
omniauth raise failure(redirects me on user sign page , dont store data in env["omniauth.auth"]). i'll appreciated help.
seems that's because of attribute expires_in=0 in vk oauth response, indicates long-living token requested 'offline' scope , leads instant token refreshing omniauth. i've submitted patch here.
Comments
Post a Comment