fix: need to redirect back to Auth0 with a signed token, not just return a response (AAI-877) - #295
Merged
Merged
Conversation
amandazhuyilan
approved these changes
Sep 4, 2026
amandazhuyilan
left a comment
Contributor
There was a problem hiding this comment.
Look aligned with the auth0 docs suggestions - thanks for catching this
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
AAI-877: while implementing the Auth0 action, realised the backend can't just return a response with the required data - it has to do a redirect, and we need to embed the data in a token for security.
We also can't do the linking call to Auth0 here - it interferes with login, see: https://support.auth0.com/center/s/article/Unable-to-process-redirect-callback. That has been moved to the Auth0 action side.
Changes
/aaf/check-linkendpoint now returns a redirect to Auth0, with response data embedded in thesession_tokenparametercreate_action_tokenfunction to create signed tokens for Auth0Checklist
For any new secrets, I have updated the shared spreadsheet and the GitHub Secrets.How to Test Manually (if necessary)
Run
uv run pytest