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.

2
  • 1
    Do you want to let users authenticate with their Google/FB/whatever account in your application? Or do you want, others can use your REST-API with authentication? Commented Sep 13, 2013 at 14:43
  • I want others can use my REST-API with authentication. Thanks! Commented Sep 15, 2013 at 22:08

1 Answer 1

3

As the symfony Ecosystem is big, take a look at the FOSRestBundle for creating the API. Then there is the NelmioApiDocBundle for easy documentation of your REST-API. For authenticating you should consider OAuth, so take a look at the FOSOAuthServerBundle. With all three combined you can create a great API.

Also read this article, about REST APIs with Symfony2: The Right Way

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for your answer! I'm gonna read the article and investigate about the bundles you mentioned.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.