Authentication
Authentication plugins are used to authenticate a user's login details. Joomla!
supports four different authentication methods:
GMail
Joomla!
LDAP
OpenID
By creating new authentication plugins, we can allow Joomla! to support additional
authentication methods. It is common for businesses to run more than one system,
each with its own authentication. Joomla! authentication plugins allow us to integrate
authentication between systems and reduce system management overheads.
There is only one authentication event, onAuthenticate. This event is used to
determine if a user has authentic credentials. To return a result from this event we
use the third parameter, a referenced JAuthenticationResponse object.
We set values within the object to signify the status of the authentication. This table
describes each of the properties we can set:
Property Description
birthdate User's Birthday
country User's Country
email User's email address.
error_message Error message on authentication failure or cancel
fullname User's Full name
??? ??? ??? ???
Chapter 6
[ 143 ]
Property Description
gender User's gender
language Language tag
postcode Postcode or zipcode
status Status of the authentication
timezone User's timezone
username User's username ??“ completed automatically
The status property is used to determine the result of the authentication.
Pages:
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204