Skip to content

0.3.0-alpha1

Pre-release
Pre-release
Compare
Choose a tag to compare
@stloyd stloyd released this 03 Jul 18:46
· 1589 commits to master since this release

This version is under development, and not recommended for production use, although it should work without any big issues.

List of most important changes:

  • [BC break] GenericOAuth2ResourceOwner::getAccessToken() now returns an array
    instead of a string. This array contains the access token and its 'expires_in'
    value, along with any other parameters returned from the authentication provider
  • [BC break] Added OAuthAwareExceptionInterface#setToken(), OAuthAwareExceptionInterface#getRefreshToken(),
    OAuthAwareExceptionInterface#getRawToken(), OAuthAwareExceptionInterface#getExpiresIn()
    methods
  • [BC break] Renamed AbstractResourceOwner::doGetAccessTokenRequest to doGetTokenRequest
  • [BC break] Removed AdvancedPathUserResponse & AdvancedUserResponseInterface
  • [BC break] Added UserResponseInterface#getEmail(), UserResponseInterface#getProfilePicture(),
    UserResponseInterface#getRefreshToken(), UserResponseInterface#getExpiresIn(),
    UserResponseInterface#setOAuthToken() methods
  • [BC break] Removed UserResponseInterface::setAccessToken() method
  • [BC break] Removed AbstractUserResponse::getOAuthToken() method because it was ambiguous
  • [BC break] PathUserResponse#setPaths() method no longer overwrite default paths
  • [BC break] PathUserResponse#getPath() method no longer throws an exception if path
    not exists
  • [BC break] PathUserResponse#getValueForPath() removed second argument from this method,
    it will not throw exception anymore if response or value is missing, but now will return
    null instead
  • [BC break] Added ResourceOwnerInterface#getOption($name) method
  • [BC break] ResourceOwnerInterface#getUserInformation() now must receive array ($accessToken)
    as first parameter, also added second parameter ($extraParameters) to be consistent
    along all implementations
  • Added OAuthToken::getRefreshToken(), OAuthToken::setRefreshToken(), OAuthToken::getExpiresIn(),
    OAuthToken::setExpiresIn(), OAuthToken::getRawToken(), OAuthToken::setRawToken()
  • Added AbstractResourceOwner#addOptions() & ResourceOwnerInterface#setOption($name, $value)
    methods which allows easy overwriting resource specific options
  • Added support for options: access_type, request_visible_actions, approval_prompt
    in Google resource owner
  • Added 37signals resource owner
  • Added Amazon resource owner
  • Added Bitbucket resource owner
  • Added Disqus resource owner
  • Added Dropbox resource owner
  • Added Flickr resource owner
  • Added Instagram resource owner
  • Added Odnoklassniki resource owner
  • Added Yandex resource owner