Skip to content

Fix docker logs page unauthorised issue#2737

Open
hengxian-jiang wants to merge 1 commit into
developfrom
hengxian-jiang/fix_logs_unauth_issue
Open

Fix docker logs page unauthorised issue#2737
hengxian-jiang wants to merge 1 commit into
developfrom
hengxian-jiang/fix_logs_unauth_issue

Conversation

@hengxian-jiang

Copy link
Copy Markdown
Collaborator

Merge Checklist

Please cross check this list if additions / modifications needs to be done on top of your core changes and tick them off. Reviewer can as well glance through and help the developer if something is missed out.

  • Automated Tests (Jasmine integration tests, Unit tests, and/or Performance tests)
  • Updated Manual tests / Demo Config
  • Documentation (Application guide, Admin guide, Markdown, Readme and/or Wiki)
  • Verified that local development environment is working with latest changes (integrated with latest develop branch)
  • following best practices in code review doc

@hengxian-jiang hengxian-jiang marked this pull request as ready for review June 19, 2026 07:08
Copilot AI review requested due to automatic review settings June 19, 2026 07:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds cookie-based token fallback in Trex server authorization middleware to prevent /dockerlogs (and similar iframe/cookie-authenticated routes) from failing with 401 when the Authorization header is missing.

Changes:

  • In authz middleware, when Authorization is absent/empty, attempt to extract authtoken (and fhirtoken) from the cookie header and proceed with authorization.

Comment thread services/trex/core/server/auth/authz.ts
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.

2 participants