1

I hope someone could help with this:

I am working on a php project and I need to implement the authentication of the application as a Service. I need to do something like Google where offers a Service to login in other applications using Google's Authentication Service (for example trello.com allows visitors to login with their google account).

I would like to clarify my mind, because I have no idea how to start it. I am using Symfony2 framework and I'm trying to work RESTFully, but basically what I need is just an idea of what I have to do or investigate to carry this out.

4

1 回答 1

3

由于 symfony 生态系统很大,请查看用于创建 API的FOSRestBundle 。然后是NelmioApiDocBundle,用于轻松记录您的 REST-API。对于身份验证,您应该考虑 OAuth,因此请查看FOSOAuthServerBundle。将这三者结合起来,您可以创建一个出色的 API。

另请阅读这篇文章,关于Symfony2 的 REST API:正确的方式

于 2013-09-16T04:44:38.330 回答