Skip to content

add auto open auth link #187

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 3 commits into from
Jul 2, 2025
Merged

add auto open auth link #187

merged 3 commits into from
Jul 2, 2025

Conversation

davixcky
Copy link
Contributor

@davixcky davixcky commented Jun 2, 2025

Now when doing signadot auth login we will automatically open the default browser. Depending of the host we will trigger or use some app.

This is part of signadot/community#86

@davixcky davixcky requested review from foxish and daniel-de-vera June 2, 2025 20:33
@foxish
Copy link
Member

foxish commented Jun 2, 2025

Thanks! I edited your PR title to not say it "closes that community issue". We'll close it only once the fix is released.

Copy link
Member

@foxish foxish left a comment

Choose a reason for hiding this comment

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

LGTM on MacOS - @daniel-de-vera , can you please give this a test on Linux and approve?

@daniel-de-vera
Copy link
Contributor

LGTM on MacOS - @daniel-de-vera , can you please give this a test on Linux and approve?

Yes, it works on Ubuntu.
Personally, this kind of feature tends to bother me more than it helps. I usually have multiple browser windows open with different profiles, and it often (or almost always) opens in the wrong one.
That said, I understand others might prefer that behavior 🤷‍♂️ so I'm okay with it!

} else {
fmt.Fprintf(out, "Opening browser to authenticate at: %s\n", code.VerificationURI)
}
fmt.Fprintf(out, "Enter the code: %s\n\n", code.UserCode)
Copy link
Contributor

@daniel-de-vera daniel-de-vera Jun 6, 2025

Choose a reason for hiding this comment

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

I would keep here the confirm verb instead of enter, as @scott-cotton mentioned in the original PR: #179 (review).

Copy link
Contributor

@daniel-de-vera daniel-de-vera left a comment

Choose a reason for hiding this comment

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

LGTM, I just left one minor comment

@foxish
Copy link
Member

foxish commented Jun 6, 2025

I had a regression with this change when I had a CLI built off this version - specifically it refused to apply sandboxes and kept saying I was not logged in. It may not be related to this change directly, but it's worth retesting after rebase and checking that this actually works.

@davixcky
Copy link
Contributor Author

@foxish any error in particular?

@davixcky davixcky force-pushed the add-auto-open-auth-link branch from cede47b to f43cc45 Compare June 27, 2025 16:47
@davixcky
Copy link
Contributor Author

@foxish I was able to repro, fixed with the rebase

@foxish
Copy link
Member

foxish commented Jul 1, 2025

This needs another rebase @davixcky - let's get it in for the next release.

@scott-cotton
Copy link
Member

going ahead and merging for release

@scott-cotton scott-cotton merged commit a559594 into main Jul 2, 2025
@scott-cotton scott-cotton deleted the add-auto-open-auth-link branch July 2, 2025 13:21
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.

4 participants