Class: OmniAuth::Strategies::MicrosoftOffice365
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::MicrosoftOffice365
- Defined in:
- lib/omniauth/strategies/microsoft_office365.rb
Constant Summary collapse
- DEFAULT_SCOPE =
"openid User.Read Contacts.Read"
Instance Method Summary collapse
Instance Method Details
#authorize_params ⇒ Object
44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/omniauth/strategies/microsoft_office365.rb', line 44 def super.tap do |params| %w[display domain_hint scope auth_type].each do |v| if request.params[v] params[v.to_sym] = request.params[v] end end params[:scope] ||= DEFAULT_SCOPE end end |
#raw_info ⇒ Object
40 41 42 |
# File 'lib/omniauth/strategies/microsoft_office365.rb', line 40 def raw_info @raw_info ||= access_token.get("https://graph.microsoft.com/v1.0/me").parsed end |