-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'prerelease' into feature/LIMS-116/summary-page-revamp
- Loading branch information
Showing
41 changed files
with
502 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,11 +32,12 @@ | |
|
||
# Follow CAS SSO | ||
$cas_sso = true; | ||
$sso_url = "sso.server.ac.uk"; | ||
|
||
// OIDC (or OAuth2) client ID and secret. Only useful if authentication_type is set to OIDC | ||
# OIDC (or OAuth2) client ID and secret. Only useful if authentication_type is set to OIDC | ||
$oidc_client_id = "oidcClientId"; | ||
$oidc_client_secret = "oidcClientSecret"; | ||
// Cookie key used for SSO/cookie based authentication | ||
# Cookie key used for SSO/cookie based authentication | ||
$cookie_key = "synchweb-auth"; | ||
|
||
# CAS CA Cert (for SSO) | ||
|
@@ -63,6 +64,9 @@ | |
# Timezone | ||
$timezone = 'Europe/London'; | ||
|
||
# URL to access the PV archiver | ||
$archive_url = ''; | ||
|
||
# Valid Components | ||
# Denotes that only staff may create proteins, otherwise they must come from replication | ||
# with a valid `externalid`, users may still clone proteins | ||
|
@@ -155,6 +159,13 @@ | |
# and for shipment booked, | ||
$shipbooked_email = '[email protected]'; | ||
|
||
# dewar back in storage (complete) | ||
$dewar_complete_email = ''; | ||
|
||
# Send a 'visit finished' email when a dewar moves from this beamline to this (regex) location | ||
$dewar_complete_email_locations = array('i03' => '/tray-\w+/', | ||
); | ||
|
||
# Industrial Contacts | ||
# - Industrial users get a personalised email with in contact details, | ||
# template in assets/emails/dewar-stores-in-in.html | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
|
||
namespace SynchWeb\Authentication\Type; | ||
|
||
use SynchWeb\Authentication\AuthenticationInterface; | ||
use SynchWeb\Authentication\AuthenticationParent; | ||
|
||
/** | ||
* Combined OIDC and CAS login to allow current api users to use the authentiate api | ||
* endpoint with username and password | ||
*/ | ||
class Combined extends AuthenticationParent implements AuthenticationInterface | ||
{ | ||
private $CASAuth; | ||
private $OIDCAuth; | ||
|
||
function __construct() { | ||
$this->CASAuth = new CAS(); | ||
$this->OIDCAuth = new OIDC(); | ||
} | ||
|
||
|
||
public function authenticate($login, $password) | ||
{ | ||
return $this->CASAuth->authenticate($login, $password); | ||
} | ||
|
||
public function check() { | ||
return $this->OIDCAuth->check(); | ||
} | ||
|
||
public function authorise() { | ||
return $this->OIDCAuth->authorise(); | ||
} | ||
|
||
public function authenticateByCode($code){ | ||
return $this->OIDCAuth->authenticateByCode($code); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.