-
Notifications
You must be signed in to change notification settings - Fork 183
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
Bug 1861888 - Requiring Staff To Use Duo 2FA On Bugzilla #2145
Conversation
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.
Makes sense to me.
Bugzilla/WebService/User.pm
Outdated
@@ -352,6 +375,14 @@ sub get { | |||
} | |||
} | |||
|
|||
# If calling user is member of mozilla-employee-confidential, | |||
# return ldap_email value as well | |||
if (Bugzilla->user->in_group('mozilla-employee-confidential') |
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.
Nit: you can use $user
here.
I updated the code in Bugzilla/WebService/User.pm get() to have more consistent variable naming when dealing with the logged in user and the user objects being returned. Hopefully the code is less confusing now and less error prone. |
…requirement may have changed
…up memberships. This way we can log out the user if their duo requirement status changes
…le naming of user objects in get()
…requirement - Updated icon - Updated test script
Re-requesting review: Test script has been updated to cover more functionality. I am now setting the mfa_required_date to a date in the past (immediate change needed) which should require the user to setup TOTP when removed from the duo_required_group. |
…g other test to fail
duo_required_group
andduo_required_excluded_group
.duo_required_group
will automatically be redirected to the MFA preferences page if their current MFA is not set toDuo
.Duo
for their account using the standard enrollment procedure.duo_required_excluded_group
, then they will not be redirected to the MFA page and will operate normally.