0.3.0
Big release, big changes!
Here you have some of the details that are included in this version:
- [BC break]
AccountConnectorInterface::connect()
method now requires the first parameter to be instance ofSymfony\Component\Security\Core\User\UserInterface
- [BC break]
ConnectController::authenticateUser()
method now requires the first parameter to be instance ofSymfony\Component\HttpFoundation\Request
- [BC break] Removed
AbstractResourceOwner::addOptions()
method - [BC break]
OAuthUtils::getAuthorizationUrl()
&OAuthUtils::getLoginUrl()
methods now expect first parameter to be instance ofSymfony\Component\HttpFoundation\Request
- [BC break] LinkedIn resource owner now uses OAuth2 approach, visit official web page for details how to migrate: https://developer.linkedin.com/documents/authentication#migration
- [BC break] Dropbox resource owner now uses OAuth2 approach
- [BC break] Added
ResourceOwnerInterface::isCsrfTokenValid()
method - [BC break] Removed
OAuth1RequestTokenStorageInterface
along with the implementations - [BC break]
AbstractResourceOwner::__construct()
now requiresRequestDataStorageInterface
instance as last argument - [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
todoGetTokenRequest
- [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 returnnull
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 - Fix: Yandex resource owner using invalid parameter when requesting user data
- Fix: To prevent unusual content headers response from resource owners should
be first threaten as json and only in case of failure threaten as query text - Fix: Instagram resource owner is not able to receive user data more than once
- 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
&hd
in Google resource owner - Added ability to disable confirmation page when connecting accounts
- Added CSRF protection for OAuth2 providers (turned off by default)
- Added
RequestDataStorageInterface
along with implementation - Added ability to merge response parts into single path
- Added Amazon resource owner
- Added Bitbucket resource owner
- Added Bitly resource owner
- Added Box resource owner
- Added Dailymotion resource owner
- Added DeviantArt resource owner
- Added Disqus resource owner
- Added Dropbox resource owner
- Added Eventbrite resource owner
- Added Flickr resource owner
- Added Instagram resource owner
- Added Mail.ru resource owner
- Added Odnoklassniki resource owner
- Added QQ.com resource owner
- Added Sina Weibo resource owner
- Added Stereomood resource owner
- Added Trello resource owner
- Added Wordpress resource owner
- Added Yandex resource owner
- Added 37signals resource owner