update azure_ad strategy

This commit is contained in:
Bilal
2020-08-12 14:44:22 +02:00
parent 0cc3b2bd62
commit 3352217a03

View File

@@ -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, {}