class OmniAuth::Strategies::MicrosoftV2Auth

Constants

DEFAULT_SCOPE

Public Instance Methods

authorize_params() click to toggle source
Calls superclass method
# File lib/omniauth/strategies/microsoft_v2_auth.rb, line 37
def authorize_params
  super.tap do |params|
    %w[display score auth_type].each do |v|
      if request.params[v]
        params[v.to_sym] = request.params[v]
      end
    end

    params[:scope] ||= DEFAULT_SCOPE
  end
end
callback_url() click to toggle source
# File lib/omniauth/strategies/microsoft_v2_auth.rb, line 49
def callback_url
  options[:redirect_uri] || (full_host + script_name + callback_path)
end
raw_info() click to toggle source
# File lib/omniauth/strategies/microsoft_v2_auth.rb, line 33
def raw_info
  @raw_info ||= access_token.get('https://graph.microsoft.com/v1.0/me').parsed
end