Bad auth instance slows down login for all institutions

Bug #1640308 reported by Robert Lyon on 2016-11-08
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Medium
Robert Lyon

Bug Description

If we have an auth instance in Mahara that needs to talk to a thirdparty site and the connection can't be made then it slows down the login for all institutions on the site.

Currently the only way to deal with this is to move users off the badly functioning auth to another auth (like internal) and then delete the bad auth.

What we really need to have is the ability to switch off an auth instance to stop it causing problems and when the problems for it are fixed then turn it back on again.

I'm envisaging that we add an 'active' column to the auth_instance table so that every instance can be on/off (0/1).

Then for our db calls to auth things check that the auth_instance is active as well as checking that auth is asctive.

Robert Lyon (robertl-9) on 2016-11-08
Changed in mahara:
status: New → Confirmed
importance: Undecided → Medium
Robert Lyon (robertl-9) on 2016-11-09
Changed in mahara:
assignee: nobody → Robert Lyon (robertl-9)
Robert Lyon (robertl-9) on 2016-11-15
Changed in mahara:
status: Confirmed → In Progress
Changed in mahara:
milestone: none → 17.04.0

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

commit 210a98b41a10a08409596f731fb6b59d6479ad1c
Author: Robert Lyon <email address hidden>
Date: Thu Nov 10 10:44:51 2016 +1300

Bug 1640308: Adding an auth_instance "active" column

To allow us to easily turn of a 'bad' auth when it is trying to
connect to a third party server but that server is not reachable.

Currently it makes logging in slow as it needs to timeout on that auth
instance before trying the next one.

behatnotneeded

Change-Id: Ieeaeeaeb1bc0aa61ed3faad8f3bf751edd9c1023
Signed-off-by: Robert Lyon <email address hidden>

Robert Lyon (robertl-9) on 2017-02-06
Changed in mahara:
status: In Progress → Fix Committed

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

commit e4a4ba10e13061fdb64ed20b93861843d2a3f30b
Author: Robert Lyon <email address hidden>
Date: Wed Feb 8 07:56:49 2017 +1300

Bug 1640308: Add some colour to the inactive auth instance

So it is easier to spot that it's not active when editing an institution

behatnotneeded

Change-Id: Iad51e8612420f464f197e1169298bb031f9fbff4
Signed-off-by: Robert Lyon <email address hidden>

Robert Lyon (robertl-9) on 2017-04-27
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers