Skip to content
Snippets Groups Projects

Fix SSO SAML redirection not including query string

Merged Stan Hu requested to merge sh-fix-sso-redirect-query-strings into master
All threads resolved!

When a user without a SSO session attempted to access anything in a SAML group with a query string, previously GitLab would redirect the user back to original path but drop the query string.

We fixed the redirection originally in !66791 (merged), but request.path_info drops query strings. To ensure the query strings are passed to the RelayState, we need to use request.fullpath.

Relates to #338833 (closed)

Edited by Stan Hu

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Stan Hu resolved all threads

    resolved all threads

  • Stan Hu added 1 commit

    added 1 commit

    Compare with previous version

  • Stan Hu
  • Stan Hu resolved all threads

    resolved all threads

  • Stan Hu added 1 commit

    added 1 commit

    Compare with previous version

  • Stan Hu added 9 commits

    added 9 commits

    Compare with previous version

  • Setting label(s) ~"Category:Authentication and Authorization" devopsmanage sectiondev based on ~"group::access".

  • added devopsmanage sectiondev + 1 deleted label

  • Stan Hu resolved all threads

    resolved all threads

  • Stan Hu requested review from @mksionek and removed review request for @dblessing

    requested review from @mksionek and removed review request for @dblessing

  • Gosia Ksionek approved this merge request

    approved this merge request

  • Gosia Ksionek removed review request for @mksionek

    removed review request for @mksionek

  • Gosia Ksionek requested review from @mwoolf

    requested review from @mwoolf

  • :wave: @mksionek, thanks for approving this merge request.

    This is the first time the merge request is approved. To ensure full test coverage, a new pipeline has been started.

    For more info, please refer to the following links:

  • Max Woolf resolved all threads

    resolved all threads

  • Max Woolf approved this merge request

    approved this merge request

  • Max Woolf enabled an automatic merge when the pipeline for 566d6dcb succeeds

    enabled an automatic merge when the pipeline for 566d6dcb succeeds

  • merged

  • Max Woolf mentioned in commit 0d365ec3

    mentioned in commit 0d365ec3

  • added workflowcanary label and removed workflowstaging label

  • added workflowproduction label and removed workflowcanary label

  • mentioned in issue #338833 (closed)

  • Please register or sign in to reply
    Loading