Skip to content

Commit

Permalink
Fix creating a client when there is no live request (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshk0 authored and marknadig committed Jan 21, 2019
1 parent 8092eda commit 6dfa3ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/omniauth/strategies/azure_oauth2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def client

options.authorize_params = provider.authorize_params if provider.respond_to?(:authorize_params)
options.authorize_params.domain_hint = provider.domain_hint if provider.respond_to?(:domain_hint) && provider.domain_hint
options.authorize_params.prompt = request.params['prompt'] if request.params['prompt']
options.authorize_params.prompt = request.params['prompt'] if defined? request && request.params['prompt']
options.client_options.authorize_url = "#{options.base_azure_url}/#{options.tenant_id}/oauth2/authorize"
options.client_options.token_url = "#{options.base_azure_url}/#{options.tenant_id}/oauth2/token"
super
Expand Down

0 comments on commit 6dfa3ce

Please sign in to comment.