1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-19 13:54:25 +01:00

try empty oauth2 scope

This commit is contained in:
Sylvain 2021-11-02 11:24:10 +01:00
parent 72421f99a5
commit f62eec9d3c

View File

@ -24,6 +24,12 @@ module OmniAuth::Strategies
authorize_url: active_provider.providable.authorization_endpoint,
token_url: active_provider.providable.token_endpoint
def authorize_params
super.tap do |params|
params[:scope] = ''
end
end
def callback_url
url = Rails.application.config.action_controller.default_url_options
"#{url[:protocol]}://#{url[:host]}#{script_name}#{callback_path}"