PHP OAuth API authorizes user access using the OAuth protocol. It abstracts OAuth 1.0, 1.0a, and 2.0 in the same class. It provides built-in support for popular OAuth servers: Bitbucket, Box.net, Disqus, Dropbox, Eventful, Facebook, Fitbit, Flickr, Foursquare, github, Google, Instagram, LinkedIn, Microsoft, RightSignature, Salesforce, Scoop.it, StockTwits, SurveyMonkey, Tumblr, Twitter, XING, and Yahoo!. Every other OAuth server is supported by setting an endpoint URLs and other parameters using specific class variables. The class can also send requests to an API using the previously-obtained OAuth access token. For servers which support offline access, the class can renew expired tokens automatically using refresh tokens.
|Tags||PHP php classes OAuth|
Release Notes: This release adds a sub-class for storing and retrieving tokens in an encrypted way in cookies, instead of PHP session variables. The workaround to use the API key instead of the client secret to access SurveyMonkey was removed to make it work with their latest API changes. The access_token_parameter option variable was added to support unusual OAuth implementations like Foursquare that take the access token parameter with a different name when calling their API. The login with Yahoo! example was updated to point to the right page to create Yahoo! API projects.
Release Notes: This release adds support for Disqus and SurveyMonkey. It also adds support for OAuth servers which need to pass the API key in the authorization URLs.
Release Notes: This release adds support for Salesforce OAuth server. It also fixes the retrieval of stored access token secrets from OAuth 1 servers and handles tokens with the expiry time set to 0 as non-expiring tokens.
Release Notes: This release fixes the decoding of database query result boolean values.
Release Notes: This release adds support to Bearer authorization token types. It also makes the access token not expire when the expiry time is 0. A bug was fixed to made the class reuse the previous refresh token if a new refresh token is not provided by the server when refreshing an expired token. Another bug was fixed to prevent creating duplicated OAuth session database records when using sessions for a given user.