Prev | Current Page 174 | Next

Rob Allen, Nick Lo, and Steven Brown

"Zend Framework in Action"

The authentication
results are known as the identity. The fields stored in the identity depend upon the adapter. For example, HTTP
authentication will place only the username into the identity, but database authentication might also include
full name and email address. As it is common to display the name of the logged in user, this feature is very
useful. To get at the identity information with the application, Zend Auth uses the Singleton pattern, so that the
identity results can be retrieved wherever they are required.
The authorisation adapters that are provided ???out of the box??? for Zend_Auth are:
Zend_Auth_Adapter_Http, Zend_Auth_Adapter_Digest and Zend_Auth_Adapter_DbTable. The Http and
Digest adapters authorise against a file on disk using the standard HTTP login mechanism built into all
browers. The DbTable adapter is used for authorising against a list of users that are stored in a database table.
6.2.2 Logging in using HTTP authentication
There must be very few people who have not seen the standard HTTP login box as provided by the web
browser (Figure 6.1).
Licensed to Menshu You
Please post comments or corrections to the Author Online forum at
http://www.manning-sandbox.com/forum.jspa?forumID=329
Figure 6.


Pages:
162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186
Athlete Futro Wakacje w Chorwacji agencja reklamowa poznaƄ METIN DUSZY