? ? ? Pending

User tests: Successful: Unsuccessful:

avatar zero-24
zero-24
30 Aug 2020

Pull Request for Issue #29321 cc @conconnl

Summary of Changes

Extend 2FA Enforcement option to select usergroups

image

Testing Instructions

  • Apply this patch
  • enable atleast one 2fa plugin
  • go to Users -> Manage -> Options
  • Set Enforce Two Factor Authentication to both
  • Add an usergroup (Superuser for example)
  • save and close the settings
  • you are now beeing forced to setup 2fa
  • login as an non-superuser
  • you are not forced to setup 2fa

Actual result BEFORE applying this Pull Request

You could not force 2fa to a specific usergroup

Expected result AFTER applying this Pull Request

You can now force 2fa to a specific usergroup

Documentation Changes Required

Additional option has to be documented.

Backports

That feature has been backported to 3.9+ here: https://github.com/zero-24/plg_system_force2fausergroup/releases/latest

avatar zero-24 zero-24 - open - 30 Aug 2020
avatar zero-24 zero-24 - change - 30 Aug 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 30 Aug 2020
Category Administration com_users Language & Strings Libraries
avatar zero-24 zero-24 - change - 30 Aug 2020
The description was changed
avatar zero-24 zero-24 - edited - 30 Aug 2020
avatar zero-24
zero-24 - comment - 30 Aug 2020

Drone fails unrealted to the changes done here. It seems 4.1 composer stuff is broken: https://ci.joomla.org/joomla/joomla-cms/35096/1/8

avatar zero-24 zero-24 - change - 31 Aug 2020
The description was changed
avatar zero-24 zero-24 - edited - 31 Aug 2020
avatar brianteeman
brianteeman - comment - 31 Aug 2020

Thinking out aloud here but shouldnt it be a minimum usergroup. IT wouldnt make sense to force 2fa on a manager but not on an administrator

avatar zero-24
zero-24 - comment - 31 Aug 2020

I get your point but i'm not sure whether we should implement such hierachie reading given that on bigger sites this could get quite complex. And that would lock every site owner to that rule without (for whatever reason) exception.

There might be someone above Administrator in the Hierarchie but they are not allowed to do com_users so they choose to not force 2fa to them but all other groups above Administrator should be forced to setup 2fa.

With the solution provided here both is possible with us writing non complex code and it is transparent to the site admin which group is forced to setup 2fa

avatar Formatio-hippocampi Formatio-hippocampi - test_item - 31 Aug 2020 - Tested successfully
avatar Formatio-hippocampi
Formatio-hippocampi - comment - 31 Aug 2020

I have tested this item successfully on c9f2ae6

Works as expected.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30522.

avatar conconnl conconnl - test_item - 31 Aug 2020 - Tested successfully
avatar conconnl
conconnl - comment - 31 Aug 2020

I have tested this item successfully on c9f2ae6

It works as expected.

avatar zero-24 zero-24 - edited - 31 Aug 2020
avatar zero-24 zero-24 - change - 31 Aug 2020
The description was changed
Status Pending Ready to Commit
avatar zero-24
zero-24 - comment - 31 Aug 2020

RTC Thanks!


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30522.

avatar zero-24 zero-24 - edited - 31 Aug 2020
avatar zero-24 zero-24 - change - 31 Aug 2020
Labels Added: ? ? ?
avatar laoneo
laoneo - comment - 31 Aug 2020

Restartet drone

avatar zero-24
zero-24 - comment - 31 Aug 2020

Drone seems to be a more general problem with the 4.1 branch: https://ci.joomla.org/joomla/joomla-cms/35141/1/8 unrealted to this PR for sure.

avatar wilsonge
wilsonge - comment - 12 Sep 2020

I just merged 4.0-dev into 4.1-dev. can you merge in latest 4.1-dev here and see if it fixes the issue please?

avatar zero-24
zero-24 - comment - 14 Sep 2020

PR has been updated.

avatar wilsonge wilsonge - close - 22 Sep 2020
avatar wilsonge wilsonge - merge - 22 Sep 2020
avatar wilsonge wilsonge - change - 22 Sep 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-09-22 17:51:12
Closed_By wilsonge
avatar wilsonge
wilsonge - comment - 22 Sep 2020

Thanks!

Add a Comment

Login with GitHub to post a comment