Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you're looking to implement OAuth using a library you should check out the HTTP_OAuth pear package by Jeff Hodson of Digg[1], and there are a bunch of good posts on this site about database design to use with Oauth[2].</p> <p>I think I'm confused about your question, though. Are you looking to make an API for your web application, or just provide a way to protect a user's resources? If you want to make an API, you should definitely use OAuth and also use a well known library. Doing so will ensure that:</p> <ol> <li>Other developers will know how to use your API because it follows the OAuth RFC[3]</li> <li>Your web application is much more likely to be secure</li> <li>You become aware of best practices and learn some new stuff</li> </ol> <p>If you aren't looking to make an API, and just want to protect user resources, I think you would be safe using sessions[4], and, if the user is not logged in they can't access the protected resources.</p> <p>[1] HTTP_OAuth Package : <a href="http://pear.php.net/pepr/pepr-proposal-show.php?id=607" rel="nofollow noreferrer">http://pear.php.net/pepr/pepr-proposal-show.php?id=607</a><br/> [2] Oauth Database Design : <a href="https://stackoverflow.com/questions/4534337/what-is-the-recommended-database-structure-for-oauth-provider">what is the recommended database structure for OAuth Provider</a> <br/> [3] Oauth RFC : <code>http://oauth.net/</code><br/> [4] PHP Sessions : <code>http://us2.php.net/manual/en/features.sessions.php</code><br/></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload