diff --git a/lib/azure_ad.rb b/lib/azure_ad.rb index 1899dd0..b79a410 100644 --- a/lib/azure_ad.rb +++ b/lib/azure_ad.rb @@ -1,5 +1,8 @@ require 'omniauth-oauth2' +# This file is from omniauth-microsoft_graph lib (not installed) +# It is modified to make auth work + module OmniAuth module Strategies class AzureAd < OmniAuth::Strategies::OAuth2 @@ -12,7 +15,7 @@ module OmniAuth option :client_options, site: 'https://login.microsoftonline.com/' - option :authorize_options, %i[state callback_url access_type auth_type scope prompt login_hint domain_hint response_mode] + option :authorize_options, %i[state callback_url scope response_mode] option :token_params, {}