Get code and token from Azure AD and store it to the DB #76

Open
bilal.catic wants to merge 7 commits from replace-zoom-with-msft-teams into microsoft-teams
Showing only changes of commit 3352217a03 - Show all commits

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