Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Doctrine Authentication support #26

Open
opobla opened this issue May 7, 2014 · 3 comments
Open

Doctrine Authentication support #26

opobla opened this issue May 7, 2014 · 3 comments

Comments

@opobla
Copy link

opobla commented May 7, 2014

Hi everyone,

I love apigility approach and I would like to use it in my next project, but for this I would need database-backed authentication. I use doctrine authentication mechanism, and what I have done so far is to override zf-mvc-auth's authentication factory to use one of my own in a different module which in turn class doctrine's factory. With some reserves this works, but the problems arise when it is time to authorize, because zf-mvc-auth needs a valid Identity and doctrine does not know about this kind of objects.

Maybe I am following the wrong approach. Could you please point me in the right direction so I can integrate this functionality in zf-mvc-auth?

Regards,
Óscar

@adamlundrigan
Copy link
Contributor

I did some exploratory work on a solution to this a while back, but I took the approach of integrating my Doctrine ORM domain with zf-oauth2 instead; unfortunately this approach precludes the use of other authentication methods (eg: HTTP auth), but that was outside my original scope anyway. Here's the code if you're interested: https://github.com/adamlundrigan/LdcZfOAuth2Doctrine

@nuxwin
Copy link
Contributor

nuxwin commented Dec 23, 2015

Hello,

@opobla

You want use the object respository authentication adapter from doctrine module, right?

@weierophinney
Copy link
Member

This repository has been closed and moved to laminas-api-tools/api-tools-mvc-auth; a new issue has been opened at laminas-api-tools/api-tools-mvc-auth#24.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants