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