Class: OmniAuth::Strategies::Passport
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::Passport
- Defined in:
- lib/omniauth/strategies/passport.rb
Constant Summary collapse
- PARAMS =
%w[name email phone reference]
Instance Method Summary collapse
Instance Method Details
#raw_info ⇒ Object
28 29 30 31 32 33 |
# File 'lib/omniauth/strategies/passport.rb', line 28 def raw_info @raw_info ||= begin parsed = access_token.get('/api/v1/me').parsed parsed.fetch 'user', Hash.new end end |
#request_phase ⇒ Object
21 22 23 24 25 26 |
# File 'lib/omniauth/strategies/passport.rb', line 21 def request_phase params = request.params.slice *PARAMS ..update params super end |