Skip to content

Commit

Permalink
Tell omniauth which redirect_uri to use
Browse files Browse the repository at this point in the history
As seen here:
omniauth/omniauth-oauth2#93
https://docs.microsoft.com/en-us/graph/tutorials/ruby?tutorial-step=3

This way we can have multiple callback urls setup in Azure AD.
  • Loading branch information
Octavian Neguletu committed Jan 16, 2020
1 parent 9891db1 commit e6054cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/omni_auth/strategies/azure_ad_auth.rb
Expand Up @@ -53,7 +53,7 @@ def user_roles
# query parameters. Azure fails validation because that doesn't match the
# registered callback.
def callback_url
options[:redirect_uri]
options[:redirect_uri] || (full_host + script_name + callback_path)
end
end
end
Expand Down

0 comments on commit e6054cf

Please sign in to comment.