Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doctrine Authentication support #24

Open
weierophinney opened this issue Dec 31, 2019 · 2 comments
Open

Doctrine Authentication support #24

weierophinney opened this issue Dec 31, 2019 · 2 comments

Comments

@weierophinney
Copy link
Contributor

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


Originally posted by @opobla at zfcampus/zf-mvc-auth#26

@weierophinney
Copy link
Contributor Author

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


Originally posted by @adamlundrigan at zfcampus/zf-mvc-auth#26 (comment)

@weierophinney
Copy link
Contributor Author

Hello,

@opobla

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


Originally posted by @nuxwin at zfcampus/zf-mvc-auth#26 (comment)

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

No branches or pull requests

1 participant