Class: OmniAuth::Strategies::Vkontakte
- Defined in:
- lib/omniauth/strategies/vkontakte.rb
Overview
Authenticate to Vkontakte utilizing OAuth 2.0 and retrieve basic user information. documentation available here: http://vkontakte.ru/developers.php?o=-17680044&p=Authorization&s=0
Instance Attribute Summary
Attributes inherited from OAuth2
#client_id, #client_options, #client_secret, #options
Instance Method Summary collapse
-
#initialize(app, api_key = nil, secret_key = nil, options = {}, &block) ⇒ Vkontakte
constructor
A new instance of Vkontakte.
Methods inherited from OAuth2
Constructor Details
#initialize(app, api_key = nil, secret_key = nil, options = {}, &block) ⇒ Vkontakte
Returns a new instance of Vkontakte.
18 19 20 21 22 23 24 25 26 |
# File 'lib/omniauth/strategies/vkontakte.rb', line 18 def initialize(app, api_key = nil, secret_key = nil, = {}, &block) = { :site => 'https://vkontakte.ru', :authorize_url => 'http://api.vkontakte.ru/oauth/authorize', :access_token_url => 'https://api.vkontakte.ru/oauth/token' } super(app, :vkontakte, api_key, secret_key, , , &block) end |