FriendsOfSymfony / FOSOAuthServerBundle

A server side OAuth2 Bundle for Symfony
1.09k stars 450 forks source link

Doctrine ODM classes #203

Open symfony-spb opened 10 years ago

symfony-spb commented 10 years ago

I'm using FOSUserBundle and MongoDB. Now I try to integrate FOSOAuthserverBundle.

I'm using this article http://blog.tankist.de/blog/2013/07/17/oauth2-explained-part-2-setting-up-oauth2-with-symfony2-using-fosoauthserverbundle/ as example.

Most parts are working now except I can't get authenticated user

$user = $this->container->get('security.context')->getToken()->getUser();

There is no user profile in user object.

I think the problem is that Doctrine ODM classes have no reverence to user document like ORM have. Can anyone tell me why ODM classes have no reverence to user?

Any help is apprisiated.

alanbem commented 10 years ago

Can you confirm that #204 fix resolved your problem - I don't use Doctrine at all, so can't definitely tell by just looking at.

symfony-spb commented 10 years ago

Yes, I confirm that #204 resolve my problem

alanbem commented 10 years ago

In that case can I ask you to rebase and squash your commits?