Sha256: 208b558440123e1743076f7e13c50711d1509ac51f3ed6023b029793189f9a82
Contents?: true
Size: 774 Bytes
Versions: 2
Compression:
Stored size: 774 Bytes
Contents
module OauthService class MailRu < Provider def initialize(name, downcase_name, auth_url, client_id, client_secret, info_url, scopes, token_url) super(name, downcase_name, auth_url, client_id, client_secret, info_url, scopes, token_url) @scopes = nil end def get_user_info(info) info.first end def get_info_headers(options = {}) nil end def get_info_params(options = {}) query_params = { 'app_id' => client_id, 'method' => 'users.getInfo', 'secure' => 1, 'session_key' => options[:access_token] } query_params['sig'] = Digest::MD5.hexdigest(query_params.collect { |v| v.join('=') }.join + client_secret) query_params end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
oauth_service-0.0.2 | app/controllers/concerns/oauth_service/mailru.rb |
oauth_service-0.0.1 | app/controllers/concerns/oauth_service/mailru.rb |