SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 193 | Next

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"

This table
describes the three different constants we use to define the value of status.
Constant Description
JAUTHENTICATE_STATUS_CANCEL Authentication Canceled
JAUTHENTICATE_STATUS_FAILURE Authentication Failed
JAUTHENTICATE_STATUS_SUCCESS Authentication Successful
Authentication plugins are stackable. We can use multiple authentication plugins
simultaneously. The plugins are used in published order and if any of them sets the
status of the JAuthenticationResponse object to JAUTHENTICATE_STATUS_SUCCESS
the login is deemed successful and no more authentication plugins are triggered.
The default setup, shown below, places the plugins in the order: Joomla!, LDAP,
OpenID, GMail. Only Joomla! authentication is enabled by default.
Additional processing can be performed once a login has completed using user
plugins. These are discussed later in the chapter.
onAuthenticate
Description
Triggered when a user attempts to log in, this event is used to authenticate
user credentials.
Parameters username Username
password Password
response Referenced JAuthenticationResponse object
Plugin Design
[ 144 ]
Content
The content plugins allow us to modify content items before we display them.


Pages:
181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205