-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Login MFA #14025
Login MFA #14025
Changes from 10 commits
874c12d
66ee056
a0a3dc0
db06633
90466cc
0626c75
02c8b5d
d360dee
03b50a5
6a33a8f
9de2ff3
f533db7
25f303c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:feature | ||
auth: Add support for single and two phase MFA to login endpoints. | ||
``` |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -146,6 +146,11 @@ func (c *WriteCommand) Run(args []string) int { | |
return 0 | ||
} | ||
|
||
if secret != nil && secret.Auth != nil && secret.Auth.MFARequirement != nil { | ||
c.UI.Warn(wrapAtLength("WARNING! A login request was issued that is subject to "+ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think all-caps "WARNING" may be a little too strong. I'd leave it as a UI.Warn but drop the "WARNING" since it's really more informative - like if someone is doing this routinely I think it makes this a bit more alarming than it needs to be. |
||
"MFA validation. Please make sure to validate the login by sending another "+ | ||
"request to mfa/validate endpoint.") + "\n") | ||
} | ||
// Handle single field output | ||
if c.flagField != "" { | ||
return PrintRawField(c.UI, secret, c.flagField) | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
@raskchanky Catching this in final changelog review, but as a feature this should have the "new feature" formatting, which is on the changelog page on the wiki.
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.
Argh, sorry 😞 . I can submit a PR to change it.
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.
#14326