Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

feat: simplify login flow #274

Merged
merged 4 commits into from
Mar 9, 2021
Merged

feat: simplify login flow #274

merged 4 commits into from
Mar 9, 2021

Conversation

cmoog
Copy link
Contributor

@cmoog cmoog commented Mar 9, 2021

When browser is openable

Screen Shot 2021-03-09 at 12 02 38 PM

When open in browser fails

Screen Shot 2021-03-09 at 12 06 55 PM

Token copy page

Screen Shot 2021-03-09 at 10 35 42 AM

@cmoog cmoog requested review from fuskovic and greyscaled March 9, 2021 18:05
@cmoog cmoog changed the title cmoog/simple login feat: simplify login flow Mar 9, 2021
Copy link
Contributor

@greyscaled greyscaled left a comment

Choose a reason for hiding this comment

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

Awesome stuff 💯

return storeConfig(envURL, token, config.URL, config.Session)
}

func readLine(prompt string) string {
Copy link
Contributor

Choose a reason for hiding this comment

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

I feel like we can break this out from login.go, but that can be done later

Copy link
Contributor

@fuskovic fuskovic left a comment

Choose a reason for hiding this comment

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

I like it.

Reminds me of the gcloud auth flow.

@cmoog cmoog enabled auto-merge (squash) March 9, 2021 18:20
@cmoog cmoog merged commit 11c83e4 into master Mar 9, 2021
@cmoog cmoog deleted the cmoog/simple-login branch March 9, 2021 18:23
@cmoog
Copy link
Contributor Author

cmoog commented Mar 9, 2021

Oh we'll need to note this in the change log for 1.17 since v1.17 of the CLI will required v1.17 of the dashboard. Standard stuff

@greyscaled
Copy link
Contributor

Oh we'll need to note this in the change log for 1.17 since v1.17 of the CLI will required v1.17 of the dashboard. Standard stuff

Might be worth adding a ticket or task to https://app.clubhouse.io/coder/epic/6121/okr-3-1-establish-go-to-market-approach-for-new-product-and-feature-launches?vc_group_by=day somewhere

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants