authentication method not assigned properly

Bug #1896564 reported by Cecilia Vela Gurovic
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Medium
Cecilia Vela Gurovic

Bug Description

Have 2 institutions "Primary School" and "University" with only one webservices auth instance each

Have one user account and add to "Primary School" institution

Check the Primary school settings, a new internal auth instance was created (is it expected?)

Add user to "University" institution
Check the "University" institution settings, there still is only one auth instance and is a webservice one
Go back to user settings and set Authentication method to "university: webservice"
save changes

Expected results: after the page refreshes, University institution has only one authentication instance "university: webservice" and the user account is linked to it

Actual result: after the page refreshes, a new authentication instance has been created "university: internal" and the user account has been linked to it

Changed in mahara:
status: New → Confirmed
status: Confirmed → In Progress
assignee: nobody → Cecilia Vela Gurovic (ceciliavg)
importance: Undecided → Medium
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/11266
Committed: https://git.mahara.org/mahara/mahara/commit/a00ddfe1550f0caf1f3df1b10cdeb1595fdcaea0
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit a00ddfe1550f0caf1f3df1b10cdeb1595fdcaea0
Author: Cecilia Vela Gurovic <email address hidden>
Date: Mon Sep 14 17:07:56 2020 +1200

Bug 1896564: need to tidy up the user auth instance saving

When a user is switch from 'No institution' to an institution,
the auth instance needs to be updated in the usr table
to be linked to an authentication method from this new institution

Also we should allocate the person with the same type of auth method
if possible, otherwise allocate the top priority auth method

behatnotneeded

Change-Id: I9431c1a5c3f6e6b44972ac14ad644abcb076023e

Robert Lyon (robertl-9)
Changed in mahara:
milestone: none → 21.10.0
status: In Progress → Fix Committed
Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
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.