|
| unauthorized (&$request) |
| When the process logic determines that the user is not authorized for this service, then forward the user to an 403 unauthorized page. More...
|
|
◆ __construct()
sspmod_saml_Auth_Process_ExpectedAuthnContextClassRef::__construct |
( |
|
$config, |
|
|
|
$reserved |
|
) |
| |
Initialize this filter, parse configuration.
- Parameters
-
array | $config | Configuration information about this filter. |
mixed | $reserved | For future use. |
- Exceptions
-
Definition at line 44 of file ExpectedAuthnContextClassRef.php.
References $config, and SimpleSAML\Logger\error().
46 parent::__construct(
$config, $reserved);
48 assert(
'is_array($config)');
49 if (empty(
$config[
'accepted'])) {
51 'ExpectedAuthnContextClassRef: Configuration error. There is no accepted AuthnContextClassRef.' 54 'ExpectedAuthnContextClassRef: Configuration error. There is no accepted AuthnContextClassRef.' 57 $this->accepted =
$config[
'accepted'];
◆ process()
sspmod_saml_Auth_Process_ExpectedAuthnContextClassRef::process |
( |
& |
$request | ) |
|
- Parameters
-
array | &$request | The current request |
Definition at line 65 of file ExpectedAuthnContextClassRef.php.
References unauthorized().
67 assert(
'is_array($request)');
68 assert(
'array_key_exists("Attributes", $request)');
70 $this->AuthnContextClassRef = $request[
'saml:sp:State'][
'saml:sp:AuthnContext'];
72 if (!in_array($this->AuthnContextClassRef, $this->accepted,
true)) {
unauthorized(&$request)
When the process logic determines that the user is not authorized for this service, then forward the user to an 403 unauthorized page.
◆ unauthorized()
sspmod_saml_Auth_Process_ExpectedAuthnContextClassRef::unauthorized |
( |
& |
$request | ) |
|
|
protected |
When the process logic determines that the user is not authorized for this service, then forward the user to an 403 unauthorized page.
Separated this code into its own method so that child classes can override it and change the action. Forward thinking in case a "chained" ACL is needed, more complex permission logic.
- Parameters
-
Definition at line 90 of file ExpectedAuthnContextClassRef.php.
References $id, $url, array, SimpleSAML\Logger\error(), SimpleSAML\Module\getModuleURL(), SimpleSAML\Utils\HTTP\redirectTrustedURL(), and SimpleSAML_Auth_State\saveState().
Referenced by process().
93 'ExpectedAuthnContextClassRef: Invalid authentication context: '.$this->AuthnContextClassRef.
94 '. Accepted values are: '.var_export($this->accepted,
true)
99 'saml/sp/wrong_authncontextclassref.php' if(!array_key_exists('StateId', $_REQUEST)) $id
static redirectTrustedURL($url, $parameters=array())
This function redirects to the specified URL without performing any security checks.
static getModuleURL($resource, array $parameters=array())
Get absolute URL to a specified module resource.
Create styles array
The data for the language used.
static saveState(&$state, $stage, $rawId=false)
Save the state.
◆ $accepted
sspmod_saml_Auth_Process_ExpectedAuthnContextClassRef::$accepted |
|
private |
◆ $AuthnContextClassRef
sspmod_saml_Auth_Process_ExpectedAuthnContextClassRef::$AuthnContextClassRef |
|
private |
The documentation for this class was generated from the following file: