Skip to content

Conversation

@kangasta
Copy link
Member

@kangasta kangasta commented Feb 11, 2025

@kangasta kangasta requested a review from a team as a code owner February 11, 2025 21:15
@kangasta kangasta marked this pull request as draft February 11, 2025 21:18

exec.PushProgressSuccess(msg)

return output.None{}, nil
Copy link
Member Author

Choose a reason for hiding this comment

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

Should maybe output the token if saving to keyring fails 🤔


err = keyring.Set("UpCloud", "", token)
if err != nil {
return commands.HandleError(exec, msg, fmt.Errorf("failed to save token to keyring: %w", err))
Copy link
Member Author

Choose a reason for hiding this comment

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

Do we want to use config file as fallback? I guess the file should be generic to be able to use it also with e.g. Terraform provider 🤔

Comment on lines 40 to 45
if token == "" {
http.Redirect(w, req, getURL("error"), http.StatusSeeOther)
return
}
s.token = token
http.Redirect(w, req, getURL("success"), http.StatusSeeOther)
Copy link
Member Author

Choose a reason for hiding this comment

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

Should the token be delivered with fetch request instead of redirects?

@kangasta kangasta changed the title feat(account): add login command feat(account): support configuring credentials with browser login Feb 27, 2025
@kangasta kangasta changed the base branch from main to feat/account-login-with-token February 27, 2025 15:17
@kangasta kangasta force-pushed the feat/account-login-with-token branch from 1646e59 to f66c41c Compare March 5, 2025 07:55
Base automatically changed from feat/account-login-with-token to main March 5, 2025 08:43
@mgajda
Copy link
Contributor

mgajda commented Dec 29, 2025

@kangasta Is the first task already completed by --with-token option?

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