phpCAS
version 1.4.0
|
Functions | |
CAS_Client::setRequestImplementation ($className) | |
CAS_Client::setNoClearTicketsFromUrl () | |
CAS_Client::setCasAttributeParserCallback ($function, array $additionalArgs=array()) | |
CAS_Client::setPostAuthenticateCallback ($function, array $additionalArgs=array()) | |
CAS_Client::setSingleSignoutCallback ($function, array $additionalArgs=array()) | |
CAS_Client::ensureIsProxy () | |
CAS_Client::markAuthenticationCall ($auth) | |
CAS_Client::wasAuthenticationCalled () | |
CAS_Client::_ensureAuthenticationCalled () | |
CAS_Client::wasAuthenticationCallSuccessful () | |
CAS_Client::ensureAuthenticationCallSuccessful () | |
CAS_Client::getAuthenticationCallerFile () | |
CAS_Client::getAuthenticationCallerLine () | |
CAS_Client::getAuthenticationCallerMethod () | |
|
private |
Ensure that authentication was checked. Terminate with exception if no authentication was performed
Definition at line 794 of file Client.php.
References CAS_Client\wasAuthenticationCalled().
Referenced by CAS_Client\ensureAuthenticationCallSuccessful(), CAS_Client\getAuthenticationCallerFile(), CAS_Client\getAuthenticationCallerLine(), CAS_Client\getAuthenticationCallerMethod(), and CAS_Client\wasAuthenticationCallSuccessful().
CAS_Client::ensureAuthenticationCallSuccessful | ( | ) |
Ensure that authentication was checked. Terminate with exception if no authentication was performed
CAS_OutOfSequenceException |
Definition at line 824 of file Client.php.
References CAS_Client\_ensureAuthenticationCalled(), CAS_Client\getAuthenticationCallerFile(), CAS_Client\getAuthenticationCallerLine(), and CAS_Client\getAuthenticationCallerMethod().
Referenced by CAS_Client\getAttribute(), CAS_Client\getAttributes(), CAS_Client\getProxiedService(), CAS_Client\getUser(), CAS_Client\hasAttribute(), CAS_Client\hasAttributes(), CAS_Client\initializeProxiedService(), CAS_Client\serviceMail(), and CAS_Client\serviceWeb().
CAS_Client::ensureIsProxy | ( | ) |
Ensure that this is actually a proxy object or fail with an exception
CAS_OutOfSequenceBeforeProxyException |
Definition at line 747 of file Client.php.
References CAS_Client\isProxy().
Referenced by CAS_Client\getProxiedService(), CAS_Client\initializeProxiedService(), CAS_Client\serviceMail(), CAS_Client\serviceWeb(), CAS_Client\setCallbackURL(), CAS_Client\setPGTStorage(), CAS_Client\setPGTStorageDb(), and CAS_Client\setPGTStorageFile().
CAS_Client::getAuthenticationCallerFile | ( | ) |
Answer information about the authentication caller.
Throws a CAS_OutOfSequenceException if wasAuthenticationCalled() is false and markAuthenticationCall() didn't happen.
Definition at line 846 of file Client.php.
References CAS_Client\_ensureAuthenticationCalled().
Referenced by CAS_Client\ensureAuthenticationCallSuccessful().
CAS_Client::getAuthenticationCallerLine | ( | ) |
Answer information about the authentication caller.
Throws a CAS_OutOfSequenceException if wasAuthenticationCalled() is false and markAuthenticationCall() didn't happen.
Definition at line 860 of file Client.php.
References CAS_Client\_ensureAuthenticationCalled().
Referenced by CAS_Client\ensureAuthenticationCallSuccessful().
CAS_Client::getAuthenticationCallerMethod | ( | ) |
Answer information about the authentication caller.
Throws a CAS_OutOfSequenceException if wasAuthenticationCalled() is false and markAuthenticationCall() didn't happen.
Definition at line 874 of file Client.php.
References CAS_Client\_ensureAuthenticationCalled().
Referenced by CAS_Client\ensureAuthenticationCallSuccessful().
CAS_Client::markAuthenticationCall | ( | $auth | ) |
Mark the caller of authentication. This will help client integraters determine problems with their code flow if they call a function such as getUser() before authentication has occurred.
bool | $auth | True if authentication was successful, false otherwise. |
Definition at line 763 of file Client.php.
References $auth.
Referenced by CAS_Client\isAuthenticated().
CAS_Client::setCasAttributeParserCallback | ( | $function, | |
array | $additionalArgs = array() |
||
) |
Set a callback function to be run when parsing CAS attributes
The callback function will be passed a XMLNode as its first parameter, followed by any $additionalArgs you pass.
string | $function | callback function to call |
array | $additionalArgs | optional array of arguments |
Definition at line 666 of file Client.php.
CAS_Client::setNoClearTicketsFromUrl | ( | ) |
Configure the client to not send redirect headers and call exit() on authentication success. The normal redirect is used to remove the service ticket from the client's URL, but for running unit tests we need to continue without exiting.
Needed for testing authentication
Definition at line 640 of file Client.php.
Referenced by CAS_Client\_setProxies().
CAS_Client::setPostAuthenticateCallback | ( | $function, | |
array | $additionalArgs = array() |
||
) |
Set a callback function to be run when a user authenticates.
The callback function will be passed a $logoutTicket as its first parameter, followed by any $additionalArgs you pass. The $logoutTicket parameter is an opaque string that can be used to map a session-id to the logout request in order to support single-signout in applications that manage their own sessions (rather than letting phpCAS start the session).
phpCAS::forceAuthentication() will always exit and forward client unless they are already authenticated. To perform an action at the moment the user logs in (such as registering an account, performing logging, etc), register a callback function here.
callable | $function | callback function to call |
array | $additionalArgs | optional array of arguments |
Definition at line 700 of file Client.php.
CAS_Client::setRequestImplementation | ( | $className | ) |
Override the default implementation used to make web requests in readUrl(). This class must implement the CAS_Request_RequestInterface.
string | $className | name of the RequestImplementation class |
Definition at line 613 of file Client.php.
CAS_Client::setSingleSignoutCallback | ( | $function, | |
array | $additionalArgs = array() |
||
) |
Set a callback function to be run when a single-signout request is received.
The callback function will be passed a $logoutTicket as its first parameter, followed by any $additionalArgs you pass. The $logoutTicket parameter is an opaque string that can be used to map a session-id to the logout request in order to support single-signout in applications that manage their own sessions (rather than letting phpCAS start and destroy the session).
callable | $function | callback function to call |
array | $additionalArgs | optional array of arguments |
Definition at line 730 of file Client.php.
CAS_Client::wasAuthenticationCalled | ( | ) |
Answer true if authentication has been checked.
Definition at line 781 of file Client.php.
Referenced by CAS_Client\_ensureAuthenticationCalled().
CAS_Client::wasAuthenticationCallSuccessful | ( | ) |
Answer the result of the authentication call.
Throws a CAS_OutOfSequenceException if wasAuthenticationCalled() is false and markAuthenticationCall() didn't happen.
Definition at line 809 of file Client.php.
References CAS_Client\_ensureAuthenticationCalled().
|
private |
Definition at line 774 of file Client.php.
|
private |
Definition at line 653 of file Client.php.
|
private |
Definition at line 648 of file Client.php.
|
private |
Definition at line 628 of file Client.php.
|
private |
Definition at line 679 of file Client.php.
|
private |
Definition at line 674 of file Client.php.
|
private |
The class to instantiate for making web requests in readUrl(). The class specified must implement the CAS_Request_RequestInterface. By default CAS_Request_CurlRequest is used, but this may be overridden to supply alternate request mechanisms for testing.
Definition at line 603 of file Client.php.
Referenced by CAS_Client\_readURL(), CAS_Client\_rebroadcast(), and CAS_Client\getProxiedService().
|
private |
Definition at line 714 of file Client.php.
Referenced by CAS_Client\handleLogoutRequests().
|
private |
Definition at line 709 of file Client.php.