class OmniAuth::Strategies::Lyft
Public Instance Methods
basic_auth_header()
click to toggle source
# File lib/omniauth/strategies/lyft.rb, line 40 def basic_auth_header "Basic " + Base64.strict_encode64("#{options[:client_id]}:#{options[:client_secret]}") end
build_access_token()
click to toggle source
Calls superclass method
# File lib/omniauth/strategies/lyft.rb, line 35 def build_access_token options.token_params.merge!(:code => request.params["code"], :headers => {'Authorization' => basic_auth_header }) super end
raw_info()
click to toggle source
These are called after authentication has succeeded. If possible, you should try to set the UID without making additional calls (if the user id is returned with the token or as a URI parameter). This may not be possible with all providers.
# File lib/omniauth/strategies/lyft.rb, line 31 def raw_info @raw_info ||= access_token.get("#{options[:client_options][:site]}/profile").parsed end