Users from a suspended institution can still log in

Bug #1777785 reported by Kristina Hoeppner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Invalid
High
Unassigned
20.04
Invalid
High
Unassigned

Bug Description

It should not be possible for people to log into their account if their institution has been suspended. the latest fix for that also for external auth methods is https://reviews.mahara.org/#/c/6671/

This did not work on a Mahara 17.04 for SAML auth and on a Mahara 18.10dev for internal auth.

To replicate:

1. Have an institution with one member and a site admin.
2. Site admin suspends the institution.
3. Expected result: Institution member cannot log in anymore.
   Actual result: Institution member can still log in.

This would need to be tested with all auth methods: internal, LDAP, SAML, MNet, LTI

Tags: regression
no longer affects: mahara/17.04
no longer affects: mahara/17.10
no longer affects: mahara/18.04
no longer affects: mahara/18.10
no longer affects: mahara/19.04
Changed in mahara:
milestone: 19.04.0 → 19.04.1
Changed in mahara:
milestone: 19.04.1 → 19.04.2
Changed in mahara:
milestone: 19.04.2 → 19.04.3
Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

Also see if it is a problem in 19.10 and master

Robert Lyon (robertl-9)
no longer affects: mahara/18.10
no longer affects: mahara/19.04
no longer affects: mahara/19.10
Revision history for this message
Cecilia Vela Gurovic (ceciliavg) wrote :

I've tested with internal and SAML options, I can confirm it works for both of them.

For internal auth:
- Have an institution with at least one member.
- Suspend the institution
- Try to login with the user from the institution
Result:
 I'm not logged in and see the message:
 " Your institution <Institution name> has been suspended. Until it is unsuspended, you will not be able to log in to Mahara."

For SAML auth:
- Have 2 institutions, institution1 and Institution2, both using the same idp but different institution value to check against.
- Suspend Institution1
- Try to login to Institution1
result:
 I'm not logged in and see the message:
 " Your institution <Institution name> has been suspended. Until it is unsuspended, you will not be able to log in to Mahara."
- Try to login with another user to Institution2 not suspended
Result:
 I can login without any problem

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.