1

I want to implement Oauth to protect my PHP Web Services,i have been following this link but found that some of them link are not working.And the working example had implemented in slim,flight some different frameworks in php and i'm newbie in it.My problem is i want to implement Oauth in Codeignter framework to protect Web Service and as per oauth site i've got a link by Alex Bilbie which is deprecated and not working. So if someone had done this before in codeigniter please let me know , Simple PHP would be also fine, later on i can modify it to fit in codeigniter.

2
  • That you want? github.com/philsturgeon/codeigniter-oauth2 Commented Jul 18, 2014 at 6:46
  • 1
    I had it already but i wanted to make it for my own provider.Provider will be site itself and when user comes i want to authorize them with same method which oauth uses. Commented Jul 18, 2014 at 6:50

1 Answer 1

3
+25

I find Brent Shaffer's OAuth2 Server Library for PHP an excellent library!

In the cookbook you can find many examples on how to integrate it into certain frameworks, unfortunately CodeIgniter isn't one of them. But the documentation is very good, and you can use the cookbooks on the other frameworks as a guide for doing it in CodeIgniter.

You can find the library on Github.

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

2 Comments

And I guess you choose not to use it. Maybe you can sum up which libraries you tried, and what you found lacking?
Actually i had tried www.sitepoint.com/creating-a-php-oauth-server/ which is quite simple and easy to implement.But if anything would be implemented on codeigniter will be helpful.

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.