|
| 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.
45 {
46 parent::__construct(
$config, $reserved);
47
49 if (empty(
$config[
'accepted'])) {
51 'ExpectedAuthnContextClassRef: Configuration error. There is no accepted AuthnContextClassRef.'
52 );
54 'ExpectedAuthnContextClassRef: Configuration error. There is no accepted AuthnContextClassRef.'
55 );
56 }
57 $this->accepted =
$config[
'accepted'];
58 }
References $config, and SimpleSAML\Logger\error().
◆ process()
sspmod_saml_Auth_Process_ExpectedAuthnContextClassRef::process |
( |
& |
$request | ) |
|
- Parameters
-
array | &$request | The current request |
Reimplemented from SimpleSAML_Auth_ProcessingFilter.
Definition at line 65 of file ExpectedAuthnContextClassRef.php.
66 {
68 assert(array_key_exists(
'Attributes',
$request));
69
70 $this->AuthnContextClassRef =
$request[
'saml:sp:State'][
'saml:sp:AuthnContext'];
71
72 if (!in_array($this->AuthnContextClassRef, $this->accepted, true)) {
74 }
75 }
foreach($paths as $path) $request
unauthorized(&$request)
When the process logic determines that the user is not authorized for this service,...
References $request, and unauthorized().
◆ 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.
91 {
93 'ExpectedAuthnContextClassRef: Invalid authentication context: '.$this->AuthnContextClassRef.
94 '. Accepted values are: '.var_export($this->accepted, true)
95 );
96
99 'saml/sp/wrong_authncontextclassref.php'
100 );
102 }
static getModuleURL($resource, array $parameters=array())
Get absolute URL to a specified module resource.
static redirectTrustedURL($url, $parameters=array())
This function redirects to the specified URL without performing any security checks.
static saveState(&$state, $stage, $rawId=false)
Save the state.
if(!array_key_exists('StateId', $_REQUEST)) $id
References $id, $request, $url, SimpleSAML\Logger\error(), SimpleSAML\Module\getModuleURL(), SimpleSAML\Utils\HTTP\redirectTrustedURL(), and SimpleSAML_Auth_State\saveState().
Referenced by process().
◆ $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: