__construct()
all_attributes()
attribute()
check_and_force_sso()
check_sso()
logout()
$env
$metadata
$path
$attributes
$context
$cookiename
$token
cookiename
version
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 |
---|
all_attributes(boolean $force_arrays)
boolean
Force use of arrays even on single valued attributes
attribute(string $atr, boolean $force_array)
string
Attribute name
boolean
Whether to cast to array even if attribute has a single value
check_and_force_sso(string $gotourl) : boolean
string
Return URL. If not specified, current URL is used
boolean
User has a valid SSO session or notcheck_sso() : boolean
boolean
User has a valid SSO session or notlogout(string $gotourl)
string
URL to return to after logging out
$env
$path
$attributes
$context
$token
version