-
Notifications
You must be signed in to change notification settings - Fork 92
Add UserAccountConnect login option (OAuth authorization code flow) #4634
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
Draft
jricher
wants to merge
29
commits into
mongodb:master
Choose a base branch
from
jricher:atlas-cli-oauth
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
3d5b12b
Add atlas auth connect command shell with UserDelegation telemetry
jricher fe83381
Wire discovery caching into the connect command
jricher f9780c4
Wire authorization code flow into the connect command
jricher 1d80dd0
Add issuer-based cache validation and config overrides to connect com…
jricher eaf9829
Store token expiry and add UserDelegation to organizations create
jricher b28f4ba
Add UserDelegation support to whoami command
jricher 79107d2
Add --discover flag to force re-fetch of authorization server metadata
jricher e128b8a
Add UserDelegation support to logout command
jricher 75900dd
Add UserDelegation to setup PreRun authenticated check
jricher 09cb458
Add --noBrowser manual paste flow to connect command
jricher 72f7b70
Realign ConnectOpts struct fields with gofmt
jricher 4042798
Regenerate logout mock after ConfigDeleter grew UserDelegation methods
jricher 08ddbdd
Trim restated comments in connect.go
jricher b7f319b
Pass os.Stdin to ParseCodeFromRedirectURL
jricher f37be5d
Add ConnectConfig mock generation
jricher db3e129
Make UserDelegation revoke injectable in logout
jricher a69e4c4
Pass token state into whoOpts instead of reading globals
jricher dc67d41
Add unit tests for connect, logout, and whoami UserDelegation paths
jricher 0c979a6
Consolidate whoami dispatch into Run
jricher fa31f00
Add new menu item for connect command under login, uses existing mach…
jricher c2ed9f9
Fix gofmt alignment in login and prompt auth constants
jricher c596330
Rename connect command to UserDelegationFlow
jricher 4dd760d
Gate device-flow refresh to UserAccount profiles
jricher 39ea9da
Run the authorization code flow from the login menu
jricher 5da2437
Wire logout revoke per auth type
jricher a428b08
Drop empty identifier from already-authenticated error
jricher 3360f6b
Remove the standalone auth connect command
jricher be609dd
Prompt for the helper page code in the no-browser flow
jricher ca5fcd7
Reference the no-browser redirect URI constant
jricher File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I realize this is what we want to call out when things have stabilized, and verified as working cleanly - does this wording change (legacy vs “best for user accounts”) need to ship as part of this release?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This label needs feedback from the CLI team (as does the rest of the user-facing components, like the callback page and paste-helper page) before release.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This major change would ideally be accompanied by a
There is the technical capability, and the product phrasing.
Phrasing this yet-to-be-validated-by-prod-traffic path as
" prompt.UserDelegationAuth: "(best for user accounts)",
during its v0 commit is heavy-handed.