DiamondLightSource / SynchWeb

ISPyB web application
http://diamondlightsource.github.io/SynchWeb/
Apache License 2.0
15 stars 31 forks source link

LIMS-1355: Make OAuth2 support more generic #792

Closed gfrn closed 4 weeks ago

gfrn commented 2 months ago

JIRA ticket: LIMS-1355

Summary:

Currently, support for OAuth2 code flow in the OIDC authentication type is tailored to CAS. In order to enable Keycloak compatibility, it must be configurable, down to the claim used for identifying users, as well as ensuring the whole process is not specific to one or other CAS quirk.

NOTE: This requires configuration changes to SynchWeb when being deployed. Do not merge this in before altering the configuration to provide a full path (including protocol) for $sso_url and adding $sso_user_key to the configuration file with the value id.

Changes:

To test: