Skip to content

Conversation

@nathanfranklin
Copy link
Member

@nathanfranklin nathanfranklin commented Dec 2, 2025

Overview

Support cookie-based authentication from CEP portal for iframe embedding. The app now auto-detects when running in an iframe and fetches a Tapis auth token from the parent portal.

Related

Changes

  • App detects iframe context and then fetches JWT from parent portal's /api/auth/tapis/ endpoint
  • Service now uses /imageinf/ui/ for frontend and /imageinf/api/ for backend (Note: deployment will need to be updated to refect these changes)
  • Added local testing environment to simulate production iframe embedding
  • Added make setup-tapis-token command to get a tapis token for iframe testing

Testing

See README-IFRAME-TEST.md for instructions

UI

Screenshot 2025-12-02 at 5 05 23 PM

Notes

  • Core portal deployments repo will need to be updated to reflect: /imageinf/ui/ for frontend and /imageinf/api/ for backend

Copy link
Collaborator

@taoteg taoteg left a comment

Choose a reason for hiding this comment

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

LGTM! Great work here - huge lift. Only had one comment about the wording in a code comment. ;)

@nathanfranklin nathanfranklin merged commit ed03f29 into main Dec 12, 2025
4 checks passed
@nathanfranklin nathanfranklin deleted the task/WG-589-use-cookie-for-access branch December 12, 2025 21:52
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