com\setasign\SetaSite\Controller\Backend
BackendSsoHelper
File: /SetaSite/src/Controller/Backend/BackendSsoHelper.php
Class hierarchy
Summary
Constants
DEFAULT_AUTH_SOURCE
Properties
$config
protected \com\setasign\SetaSite\SsoHelper::$config
Methods
__construct()
public \com\setasign\SetaSite\SsoHelper::__construct (
\com\setasign\SetaFramework\Application\ApplicationConfig $config
)Parameters
- $config : \com\setasign\SetaFramework\Application\ApplicationConfig
auth()
Note this method will end the script by using "exit"
Parameters
- $returnTo : ?string
Exceptions
Throws \setasign\SetaSso\ForceResponseException
getAttributes()
This function will retrieve the attributes of the current user if the user is authenticated. If the user isn't authenticated, it will return an empty array.
getAuth()
protected BackendSsoHelper::getAuth (
void
): \SimpleSAML\Auth\Simple|\setasign\SetaSso\AuthSource\AuthSourceInterfacegetLoginIdentifier()
Returns the actual used login identifier value.
If the user isn't authentificated or if the attribute isn't set this method will return an empty string.
logout()
Note this method will end the script by using "exit"
Parameters
- $returnTo : ?string
Exceptions
Throws \setasign\SetaSso\ForceResponseException
requireAuth()
Note this method may end the script by using "exit"
Parameters
- $returnTo : ?string
Exceptions
Throws \setasign\SetaSso\ForceResponseException if not authentified
