Show Duo verification code during Duo authentication#1
Open
Syazvinski wants to merge 1 commit intoShaneBerhoff:mainfrom
Open
Show Duo verification code during Duo authentication#1Syazvinski wants to merge 1 commit intoShaneBerhoff:mainfrom
Syazvinski wants to merge 1 commit intoShaneBerhoff:mainfrom
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR adds a small enhancement to the Duo authentication flow so the CLI prints the 6-digit Duo verification code when it appears on the page.
What’s changed
src/elements.rs
src/main.rs
Why
On Emory’s Duo page (and similar setups), Duo shows a short numeric verification code on the web page that the user must type into the Duo Mobile app. When running the CLI in a terminal, users often don’t have the browser in front of them, so they can’t see the code.
By surfacing the code in the CLI, users can complete Duo from their phone without having to look at the browser window, while keeping the rest of the Duo flow unchanged.
Scope