Skip to content

Add interactive mode to auth flow, pass from login and refresh#3997

Merged
mislav merged 2 commits intocli:trunkfrom
nicknotfun:non-interactive-auth
Jan 12, 2022
Merged

Add interactive mode to auth flow, pass from login and refresh#3997
mislav merged 2 commits intocli:trunkfrom
nicknotfun:non-interactive-auth

Conversation

@nicknotfun
Copy link

Fixes #3996

All existing tests pass, also manually tested reproduction steps from the linked issue it now works without interaction.

@mislav mislav self-assigned this Aug 4, 2021
@TarunavBA

This comment was marked as spam.

@mislav mislav added the external pull request originating outside of the CLI core team label Dec 20, 2021
@mislav mislav force-pushed the non-interactive-auth branch from 1541f8a to 63a788a Compare January 11, 2022 21:49
@nicknotfun nicknotfun requested a review from a team as a code owner January 11, 2022 21:49
@nicknotfun nicknotfun requested review from vilmibm and removed request for a team January 11, 2022 21:49
@mislav mislav requested review from mislav and removed request for vilmibm January 11, 2022 22:01
Copy link
Contributor

@mislav mislav left a comment

Choose a reason for hiding this comment

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

Thank you!

With the initial changes on this branch, running gh auth login non-interactively did not quite work for me, so I've pushed some edits.

Fixes non-interactive login flow and make sure "prompt" configuration is
respected by never prompting if it was explicitly disabled.

No longer asks to press Enter again after "Authentication complete"
message, since that didn't provide any value to the user.
@mislav mislav force-pushed the non-interactive-auth branch from 63a788a to be9f011 Compare January 12, 2022 14:51
@mislav mislav enabled auto-merge January 12, 2022 14:54
@mislav mislav disabled auto-merge January 12, 2022 14:57
@mislav mislav enabled auto-merge January 12, 2022 14:58
@mislav mislav merged commit 8198cce into cli:trunk Jan 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external pull request originating outside of the CLI core team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When non-interactive, the auth and refresh flows still require interaction

3 participants