FriendsOfSymfony / FOSOAuthServerBundle

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

update ODM part of example: add user property in AccessToken #558

Open wingzero0 opened 6 years ago

wingzero0 commented 6 years ago

update ODM part of example: add user property in AccessToken, RefressToken, AuthCode.

Missing it will cause mongodb not saving the referenced user, and in the authenication step, it will not able to get back user.

Also replace the mapping with annotation for reading reasier.

alcaeus commented 5 years ago

483 already does some improvements in the docs for ODM, even though we weren't quite sure whether we'd want to use annotations or XML.