← Back to team overview

mahara-contributors team mailing list archive

[Bug 1724743] Re: SAML metadata page shouldn't redirect to main page when a site is in maintenance mode

 

Around line 391 of init.php we check if site is closed for
upgrade/maintenance mode and if so we logout the user and redirect them
to homepage if not doing install/upgrade.

Where we check $USER->is_logged_in() on line 396 we could also check if
the auth instance is an external vs internal auth type and reply with
the correct HTTP response and/or json object saying access is not
available if external auth type before logging them out and redirecting
to hompage.

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1724743

Title:
  SAML metadata page shouldn't redirect to main page when a site is in
  maintenance mode

Status in Mahara:
  Confirmed

Bug description:
  SAML metadata page  /auth/saml/sp/metadata.php shouldn't redirect to
  main page when a site is in maintenance mode. Ideally, it should send
  503 HTTP response to let systems who read the metadata know, that the
  file is not accessible.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1724743/+subscriptions


References