Helper class for OpenSSO integration
package | libopensso-php |
---|
__construct(string $env, boolean $fetch_cookie_name, string $metadata_dir)
string
Which environment from metadata should this helper use
boolean
When true cookie name will be fetched from server using getCookieNameForToken
string
Directory to load metadata from
\Exception |
On error |
---|
allAttributes(boolean $force_arrays)
boolean
Force use of arrays even on single valued attributes
attribute(string $atr, boolean $force_array) : mixed
string
Attribute name
boolean
Whether to cast to array even if attribute has a single value
mixed
Array value(s) or false if attribute was not foundgetLoginUrl() : string
string
OpenSSO login URLgetLogoutUrl() : string
string
OpenSSO logout URLvalidateToken() : boolean
boolean
User has a valid SSO session or not$env
$path
$attributes
$context
$token
DEFAULT_COOKIENAME
VERSION