From 3352217a0311958b798591ad1a308be49027f23e Mon Sep 17 00:00:00 2001 From: Bilal Date: Wed, 12 Aug 2020 14:44:22 +0200 Subject: [PATCH] update azure_ad strategy --- lib/azure_ad.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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, {}