Class: OmniAuth::Strategies::Moloni
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::Moloni
- Defined in:
- lib/omniauth/strategies/moloni.rb
Instance Method Summary collapse
-
#callback_url ⇒ Object
Moloni does not allow even different query params, even if with the same base URI.
- #email ⇒ Object
- #raw_info ⇒ Object
Instance Method Details
#callback_url ⇒ Object
Moloni does not allow even different query params, even if with the same base URI
14 15 16 |
# File 'lib/omniauth/strategies/moloni.rb', line 14 def callback_url full_host + callback_path end |
#email ⇒ Object
41 42 43 |
# File 'lib/omniauth/strategies/moloni.rb', line 41 def email raw_info['email'] end |
#raw_info ⇒ Object
36 37 38 39 |
# File 'lib/omniauth/strategies/moloni.rb', line 36 def raw_info access_token.[:mode] = :query @raw_info ||= access_token.get('users/getMe/').parsed end |