class OmniAuth::Strategies::Cisimple
Public Instance Methods
access_token_options()
click to toggle source
# File lib/omniauth/strategies/cisimple.rb, line 47 def access_token_options options.access_token_options.inject({}) { |h,(k,v)| h[k.to_sym] = v; h } end
build_access_token()
click to toggle source
Calls superclass method
# File lib/omniauth/strategies/cisimple.rb, line 51 def build_access_token if access_token = request.params["access_token"] ::OAuth2::AccessToken.from_hash( client, {"access_token" => access_token}.update(access_token_options) ) else with_authorization_code! { super }.tap do |token| token.options.merge!(access_token_options) end end end
email()
click to toggle source
# File lib/omniauth/strategies/cisimple.rb, line 72 def email raw_info['email'] end
email_access_allowed?()
click to toggle source
# File lib/omniauth/strategies/cisimple.rb, line 84 def email_access_allowed? options['scope'] =~ /user/ end
image()
click to toggle source
# File lib/omniauth/strategies/cisimple.rb, line 76 def image raw_info['avatar_url'] end
nickname()
click to toggle source
# File lib/omniauth/strategies/cisimple.rb, line 80 def nickname raw_info['nickname'] end
raw_info()
click to toggle source
# File lib/omniauth/strategies/cisimple.rb, line 42 def raw_info access_token.options[:mode] = :query @raw_info ||= access_token.get('user').parsed end
request_phase()
click to toggle source
Calls superclass method
# File lib/omniauth/strategies/cisimple.rb, line 14 def request_phase super end