Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CL2-5942 - query string except sso flow #3

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lib/omniauth/strategies/azure_activedirectory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,10 @@ def redirect_uri
options[:redirect_uri] || callback_url
end

def callback_url
full_host + script_name + callback_path
# https://github.com/omniauth/omniauth/blob/0d533c3615f7c54fa2b64d160fe7943c6fc52f78/lib/omniauth/strategy.rb#L459
def query_string
query_hash = Rack::Utils.parse_query(request.query_string).except('sso_flow')
query_hash.empty? ? '' : "?#{query_hash.to_query}"
end

##
Expand Down