Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: fill session token when app is external #17708

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

Merged
merged 2 commits into from
May 7, 2025
Merged

Conversation

BrunoQuaresma
Copy link
Collaborator

@BrunoQuaresma BrunoQuaresma commented May 7, 2025

Fix #17704

During the refactoring of WorkspaceApp response type, I updated the logic to check if the session token should be injected causing external apps to not load correctly.

To also avoid future confusions, we are only going to rely on the app.external prop to open apps externally instead of verifying if the URL does not use the HTTP protocol. I did some research and I didn't find out a use case where it would be a problem.

I'm going to refactor this code very soon to allow opening apps from the workspaces page, so I will write the tests to cover this use case there.

Not included:
During my next refactoring I'm also going to change the code to support token injections directly in the HREF instead of making it happen during the click event.

@BrunoQuaresma BrunoQuaresma self-assigned this May 7, 2025
@BrunoQuaresma BrunoQuaresma added the hotfix PRs only. Harmless small change. Only humans may set this. label May 7, 2025
Copy link

@cdr-bot cdr-bot bot left a comment

Choose a reason for hiding this comment

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

This PR is a hotfix and has been automatically approved.

  • ✅ Base is main or release branch
  • ✅ Has hotfix label
  • ✅ Head is from coder/coder
  • ✅ Less than 100 lines

@BrunoQuaresma BrunoQuaresma enabled auto-merge (squash) May 7, 2025 19:46
@BrunoQuaresma BrunoQuaresma merged commit a02ba66 into main May 7, 2025
34 checks passed
@BrunoQuaresma BrunoQuaresma deleted the bq/hotfix-app branch May 7, 2025 19:59
@github-actions github-actions bot locked and limited conversation to collaborators May 7, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
hotfix PRs only. Harmless small change. Only humans may set this.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: session token is not being injected into app URIs
1 participant