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

24363 - New magic link formatting based if FF is on #3166

Merged
merged 2 commits into from
Dec 3, 2024

Conversation

JazzarKarim
Copy link
Collaborator

Issue #:
bcgov/entity#24363

Description of changes:
Magic link now uses query params. The new format is more standard and easier to parse since all variables are consistently passed as query parameters rather than being embedded in the URL path.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the sbc-auth license (Apache 2.0).

@JazzarKarim JazzarKarim self-assigned this Dec 3, 2024
Copy link

sonarqubecloud bot commented Dec 3, 2024

escape_url = escape_wam_friendly_url(org_name)
path = f"{escape_url}/affiliationInvitation/acceptToken"
token_confirm_url = f"{app_url}/{path}/{token}"
if flags.is_on("enable-new-magic-link-formatting-with-query-params", default=False):
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Travis, can you add this FF to LD please?

Copy link
Collaborator

Choose a reason for hiding this comment

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

yes

@JazzarKarim JazzarKarim marked this pull request as ready for review December 3, 2024 21:21
@JazzarKarim JazzarKarim requested a review from seeker25 December 3, 2024 21:30
@JazzarKarim
Copy link
Collaborator Author

/gcbrun

@bcregistry-sre
Copy link
Collaborator

Temporary Url for review: https://bcregistry-account-dev--pr-3166-ej0e620z.web.app

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.

3 participants