0

I'm wondering if my service which is a layer between my ArticleRepository (Doctrine 2) and my Controller (Zend Framework) should take care of authentification/authorization or it should be part of another Service/Layer?

I wondering because I need to use my service to both in a Zf controller for a website and as an API for remote client.

Feedbacks?

JohnT
  • 967
  • 2
  • 16
  • 30
  • What kind of authorization does reading an article require? Only being logged in to the application, or some more specialized things? – Jani Hartikainen Jul 09 '11 at 18:25
  • for authentication you could look into OpenID. LightOpenID is very friendly library. For authorization you could look into OAuth? – Alfred Jul 09 '11 at 22:30

0 Answers0