Skip to content

LIMS-1436: Use auth provider provided logout URL when SSO is enabled#822

Merged
ndg63276 merged 3 commits into
pre-release/2024-R4.2from
fix/LIMS-1436/logout-from-upstream
Sep 3, 2024
Merged

LIMS-1436: Use auth provider provided logout URL when SSO is enabled#822
ndg63276 merged 3 commits into
pre-release/2024-R4.2from
fix/LIMS-1436/logout-from-upstream

Conversation

@gfrn
Copy link
Copy Markdown
Collaborator

@gfrn gfrn commented Aug 29, 2024

JIRA ticket: LIMS-1436

Summary:

In order to make the authentication controllers truly generic, the logout URL must be provided by the upstream SSO authentication provider, to which logout attempts must be redirected to.

Changes:

  • Remove logout page
  • Redirect user to SSO logout if SSO is enabled

To test:

  • Set cas_sso in config.php to true, set authentication_type to oidc, Log in, click the log out button, ensure you're redirected to CAS
  • Set cas_sso in config.php to true, set authentication_type to combined, Log in, click the log out button, ensure you're redirected to CAS
  • Set cas_sso in config.php to false, set authentication_type to dummy, ensure you're not redirected to CAS when logging out

@gfrn gfrn added javascript Pull requests that update Javascript code php Pull requests that update PHP code labels Aug 29, 2024
@gfrn gfrn self-assigned this Aug 29, 2024
Copy link
Copy Markdown
Collaborator

@ndg63276 ndg63276 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ndg63276 ndg63276 changed the base branch from master to pre-release/2024-R4.2 September 3, 2024 08:17
@ndg63276 ndg63276 merged commit b3e2362 into pre-release/2024-R4.2 Sep 3, 2024
@ndg63276 ndg63276 deleted the fix/LIMS-1436/logout-from-upstream branch September 3, 2024 08:20
@ndg63276 ndg63276 restored the fix/LIMS-1436/logout-from-upstream branch September 3, 2024 10:57
@ndg63276 ndg63276 deleted the fix/LIMS-1436/logout-from-upstream branch September 10, 2024 10:50
ndg63276 added a commit that referenced this pull request Sep 17, 2024
* LIMS-1432: Add shelxt downstream view (#818)

* LIMS-1436: Use auth provider provided logout URL when SSO is enabled (#822)

* LIMS-1108: Improve message re international shipping (#721)

* LIMS-1396: Use shipping service callback URL to only send emails once shipment is booked (#814)

* LIMS-1435: Put CCP4 location into config variable (#821)

* LIMS-656: Show auto subsamples if they have data (#817)

---------

Co-authored-by: Dean Keeble <dean.keeble@diamond.ac.uk>
Co-authored-by: Guilherme Francisco <guilherme.de-freitas@diamond.ac.uk>
Co-authored-by: Mark Williams <mark.williams@diamond.ac.uk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

javascript Pull requests that update Javascript code php Pull requests that update PHP code Ready to Release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants