Skip to content

fix: use a private ServeMux for the SSO login callback server - #571

Closed
Sarthak-Shreshtha01 wants to merge 1 commit into
microcks:masterfrom
Sarthak-Shreshtha01:fix/issue-549
Closed

Sarthak-Shreshtha01 wants to merge 1 commit into
microcks:masterfrom
Sarthak-Shreshtha01:fix/issue-549

Conversation

@Sarthak-Shreshtha01

Copy link
Copy Markdown

The SSO login added its callback route to Go's shared global router. Starting a second login in the same process added the route again and made the CLI crash. Each login now uses its own router. I added TestOAuth2LoginCanRunTwice in cmd/logout_test.go, which runs the login twice in a row.

Fixes #549

Signed-off-by: Sarthak <sarthakshreshtha345@gmail.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

github-actions Bot commented Oct 4, 2026

Copy link
Copy Markdown

👋 @Sarthak-Shreshtha01

Welcome to the Microcks community! 💖

Thanks and congrats 🎉 for opening your first pull request here! Be sure to follow the pull request template or please update it accordingly.

Hope you have a great time there!

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.

Bug : When SSO login is started twice within the same running process, the CLI crashes with a panic

2 participants