Class: OmniAuth::Strategies::RedmineOauth2
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::RedmineOauth2
- Defined in:
- lib/omniauth/strategies/redmine_oauth2.rb
Constant Summary collapse
- USER_INFO_PATH =
"users/current.json"
Instance Method Summary collapse
Instance Method Details
#email ⇒ Object
34 35 36 |
# File 'lib/omniauth/strategies/redmine_oauth2.rb', line 34 def email raw_info['mail'] end |
#raw_info ⇒ Object
42 43 44 45 |
# File 'lib/omniauth/strategies/redmine_oauth2.rb', line 42 def raw_info access_token.[:mode] = :header @raw_info ||= access_token.get(USER_INFO_PATH).parsed['user'] end |
#scope ⇒ Object
38 39 40 |
# File 'lib/omniauth/strategies/redmine_oauth2.rb', line 38 def scope access_token['scope'] end |