Class: Omniauth::Strategies::Telepass
- Inherits:
-
OmniAuth::Strategies::OAuth2
- Object
- OmniAuth::Strategies::OAuth2
- Omniauth::Strategies::Telepass
- Defined in:
- lib/omniauth/strategies/telepass.rb
Instance Method Summary collapse
Instance Method Details
#authorize_params ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'lib/omniauth/strategies/telepass.rb', line 16 def super.tap do |params| %w[scope client_options].each do |v| if request.params[v] params[v.to_sym] = request.params[v] end end end end |
#callback_url ⇒ Object
50 51 52 |
# File 'lib/omniauth/strategies/telepass.rb', line 50 def callback_url full_host + script_name + callback_path end |
#raw_info ⇒ Object
41 42 43 44 45 46 47 48 |
# File 'lib/omniauth/strategies/telepass.rb', line 41 def raw_info access_token.[:mode] = :query conn = Faraday.new(:url => "https://telepass.me") conn. :Bearer, access_token.token @raw_info ||= MultiJson.load(conn.get('/api/user').body) end |
#request_phase ⇒ Object
12 13 14 |
# File 'lib/omniauth/strategies/telepass.rb', line 12 def request_phase super end |