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

fix: query param handling in AuthService.signInCallback #8782

Merged
merged 1 commit into from
Apr 6, 2023

Conversation

dschmidt
Copy link
Member

@dschmidt dschmidt commented Apr 5, 2023

Description

Fix query param handling in AuthService.signInCallback, needed at least for the details parameter of private links and parameters passed to the external app (fileId, ...).

Related Issue

Motivation and Context

vue-router does not correctly parse query params when pushing/replacing a url with query params.
We can parse them with router.resolve and pass them separately.
This makes the details handling in resolvePrivateLink.vue work and also fixes the params getting lost when redirecting into the external app after sign in.

How Has This Been Tested?

  • test environment:
  • test case 1:
  • test case 2:
  • ...

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

Open tasks:

  • ...

@update-docs
Copy link

update-docs bot commented Apr 5, 2023

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@dschmidt dschmidt force-pushed the authservice-signincallback-query-params branch from 5971852 to bea60a2 Compare April 5, 2023 15:12
@dschmidt dschmidt requested review from JammingBen, kulmann and fschade and removed request for JammingBen and kulmann April 5, 2023 15:12
@dschmidt dschmidt force-pushed the authservice-signincallback-query-params branch 5 times, most recently from a687d32 to c2a853f Compare April 5, 2023 20:44
@dschmidt dschmidt force-pushed the authservice-signincallback-query-params branch from c2a853f to 4306990 Compare April 5, 2023 20:46
@sonarcloud
Copy link

sonarcloud bot commented Apr 5, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

Copy link
Contributor

@JammingBen JammingBen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested some scenarios, works like a charm 😍

@JammingBen JammingBen merged commit 772abbc into master Apr 6, 2023
@delete-merged-branch delete-merged-branch bot deleted the authservice-signincallback-query-params branch April 6, 2023 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Open in web from Desktop currently broken
2 participants