Authentication component: which template can I use? (Php)

I am trying to isolate the auth component as much as possible by allowing various types of authentication (e.g. http, digest, database, etc.) like zend_auth: http://framework.zend.com/manual/en/zend.auth.html

Does the template have a name? Can you recommend me a different approach? Maybe bridges or strategies?

+4
source share
1 answer

well from the link you provided:

Zend_Auth provides an authentication API and includes specific authentication adapters

and Zend_auth is singleton itself.

Thus, your solution will be a combination of a single-element set and a set of adapters on a common interface. I think the introductory part of the Zend_Auth documentation is really well described, including code samples.

+2
source

All Articles