We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8092eda commit 6dfa3ceCopy full SHA for 6dfa3ce
lib/omniauth/strategies/azure_oauth2.rb
@@ -32,7 +32,7 @@ def client
32
33
options.authorize_params = provider.authorize_params if provider.respond_to?(:authorize_params)
34
options.authorize_params.domain_hint = provider.domain_hint if provider.respond_to?(:domain_hint) && provider.domain_hint
35
- options.authorize_params.prompt = request.params['prompt'] if request.params['prompt']
+ options.authorize_params.prompt = request.params['prompt'] if defined? request && request.params['prompt']
36
options.client_options.authorize_url = "#{options.base_azure_url}/#{options.tenant_id}/oauth2/authorize"
37
options.client_options.token_url = "#{options.base_azure_url}/#{options.tenant_id}/oauth2/token"
38
super
0 commit comments