1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00

read scope from env

This commit is contained in:
Sylvain 2021-11-17 09:44:22 +01:00
parent 9b06d8d756
commit 2bab28dfe6

View File

@ -26,7 +26,7 @@ module OmniAuth::Strategies
def authorize_params
super.tap do |params|
params[:scope] = 'api://b8b974a0-ecee-45fd-89cc-91d8f09d7904/User.read https://graph.microsoft.com/.default'
params[:scope] = ENV['OAUTH2_SCOPE']
end
end