Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialScott Evans
4,236 PointsPHP with OAuth 2.0 (RESTFUL API)
Does anybody have any information or guidance on how to implement my own OAuth 2.0 Provider. I have a native iOS application that needs to interact with my RESFUL API.
I need the app to be able to request authorisation from the server using a user & pass and then using that authorisation token, be allowed access to a protected resource server.
Like i stated above, if any body knows of any information it would be really helpful. Or even a different / better way i could go about this.
Stuff I've already read
1 Answer
omer farooq
6,549 PointsWell i am assuming you have a preety decent knowledge of php and basic knowledge of how api's work. Here is something that will help you (http://getfrapi.com/). FRAPI is a opensource framework created to create restful api's. It creates a skeletion of the whole API including functions. Offcourse you will have to code the functions yourself but it gets you started preety quickly. It also provides testing platform, and creates the API documentation (which is always a pain) on the go. Here is a quick video that shows it in action http://www.youtube.com/watch?v=vJVQi7ZFSaQ
Here is another tutorial that shows how to restful applications work. http://code.tutsplus.com/tutorials/creating-an-api-centric-web-application--net-23417
Scott Evans
4,236 PointsScott Evans
4,236 PointsHampton Paulk & Randy Hoyt Any advice you guys could give me?