Main class of OneLogin's PHP Toolkit
__construct(array $oldSettings = null)
arraySetting data
getSettings() : array
arrayThe settings data.
setStrict(boolean $value) : array
booleanStrict parameter
arrayThe settings data.
processResponse(string $requestId = null)
stringThe ID of the AuthNRequest sent by this SP to the IdP
processSLO(boolean $keepLocalSession = false, string $requestId = null)
booleanWhen false will destroy the local session, otherwise will destroy it
stringThe ID of the LogoutRequest sent by this SP to the IdP
redirectTo(string $url = '', array $parameters = array())
stringThe target URL to redirect the user.
arrayExtra parameters to be passed as part of the url
isAuthenticated() : boolean
booleanTrue if the user is authenticated
getAttributes() : array
arrayAttributes of the user.
getNameId() : string
stringThe nameID of the assertion
getSessionIndex() : string
stringThe SessionIndex of the assertion
getErrors() : array
arrayErrors
getLastErrorReason() : string
StringError
getAttribute(string $name) : NULL || Array
stringThe requested attribute of the user.
NULL|| array Requested SAML attribute ($name).
login(string $returnTo = null, $parameters = array(), $forceAuthn = false, $isPassive = false)
stringThe target URL the user should be returned to after login.
arrayExtra parameters to be added to the GET.
boolWhen true the AuthNReuqest will set the ForceAuthn='true'.
boolWhen true the AuthNReuqest will set the Ispassive='true'.
logout(string $returnTo = null, array $parameters = array(), string $nameId = null, string $sessionIndex = null)
stringThe target URL the user should be returned to after logout.
arrayExtra parameters to be added to the GET.
stringThe NameID that will be set in the LogoutRequest.
stringThe SessionIndex (taken from the SAML Response in the SSO process).
getSSOurl() : string
stringThe url of the Single Sign On Service
getSLOurl() : string
stringThe url of the Single Logout Service
buildRequestSignature(string $samlRequest, string $relayState) : string
stringThe SAML Request
stringThe RelayState
stringA base64 encoded signature
buildResponseSignature(string $samlResponse, string $relayState) : string
stringThe SAML Response
stringThe RelayState
stringA base64 encoded signature
_settings : array
| var | |
|---|---|
array
                                                                            _attributes : array
| var | |
|---|---|
array
                                                                            _nameid : string
| var | |
|---|---|
string
                                                                            _authenticated : boolean
| var | |
|---|---|
boolean
                                                                            _sessionIndex : string
| var | |
|---|---|
boolean
                                                                            _errors : array
| var | |
|---|---|
array