2.0.0-BETA3
Pre-release
Pre-release
Changelog
- BC Break: Dropped support for Symfony: 4.4 & 6.0.*,
- BC Break: Class
Templating\Helper\OAuthHelper
was merged intoTwig\Extension\OAuthRuntime
, - BC Break: When resource owner class doesn't define
TYPE
constant or isnull
, then key will be calculated by converting its class name withoutResourceOwner
suffix tosnake_case
, if neither is felt, then\LogicException
will be thrown, - Deprecated: method
UserResponseInterface::getUsername()
was deprecated in favour ofUserResponseInterface::getUserIdentifier()
to match changes in Symfony Security component, - Enhancement:
@internal
resourceOwner oauth types in Configuration are calculated automatically by scandir. All classes extended fromGenericOAuth[X]ResourceOwner
getoauth[X]
type. If class only implements ResourceOwnerInterface then its oauth type isunknown
. ResourceOwner key (parametertype
in configs) should have defined ResourceOwner::TYPE constant. Each user defined custom ResourceOwner class that implementedResourceOwnerInterface
will be registered automatically. Ifautoconfigure
option is disabled user have to add the taghwi_oauth.resource_owner
to the service definition, - Enhancement: Class
ConnectController
was split into two smaller ones,Connect\ConnectController
&Connect\RegisterController
, - Bugfix: Added
OAuth1ResourceOwner
&OAuth2ResourceOwner
to cover case of implementing custom oauth resource owners, - Bugfix: Fixed Authorization Header in
CleverResourceOwner::doGetRequest
, - Bugfix: Catch also the
TransportExceptionInterface
inAbstractResourceOwner::getResponseContent()
method, - Bugfix: Current matched Firewall is respected during generation of resource owner check path links,
- Bugfix: Prevent fatal error in
OAuthUserProvider::loadUserByOAuthUserResponse()
whennickname
is not available in OAuth response, - Bugfix: Use newer version of
firebase/php-jwt
library, - Chore: Removed not used Symfony Templating component
What's Changed
- Add Apple client_secret auto generation by @Seb33300 in #1884
- Update ConnectController.php by @stephanvierkant in #1886
- Merged
Templating\Helper\OAuthHelper
class directly intoTwig\Extension\OAuthRuntime
by @stloyd in #1888 - Added
OAuth1ResourceOwner
&OAuth2ResourceOwner
by @stloyd in #1889 - Refactor
ConnectController
& split it into smaller ones by @stloyd in #1887 - Improve
RefreshOAuthTokenCompilerPass
class quality by @stloyd in #1881 - Added
getIdentifier()
intoPathUserResponse
to match Symfony changes by @stloyd in #1883 - Improve Configuration.php readability by @gassan in #1891
- Fixed wrong class name in
SensioConnectUserResponse
by @stloyd in #1894 - Allow "symfony/flex" plugin by @stloyd in #1908
- Removed support for Symfony ~6.0 by @stloyd in #1907
- Fixed links to documentation by @stloyd in #1909
- Remove invalid CI job by @stloyd in #1910
- Fix typo by @dlondero in #1899
- Fix Authorization header for CleverResourceOwner.php by @gassan in #1868
- Catch also the
TransportExceptionInterface
inAbstractResourceOwner::getResponseContent()
method by @stloyd in #1911 - Current matched Firewall is respected during generation of check path links. by @gassan in #1890
- Added funding button by @stloyd in #1912
- All ResourceOwners are collected automatically. by @gassan in #1872
- Fixed configuration of custom resource owners by @stloyd in #1915
- Add custom resource owner to confirm it's working correctly by @stloyd in #1916
- Fix typo in configuration comment by @reyostallenberg in #1933
- Update apple connector doc link by @Nek- in #1929
- Fix PHP 8.2 compatibility by @IonBazan in #1926
- Avoid confusion about Symfony version support dropped by @lyrixx in #1936
- Added feature to auto hint towards specific idp by @pimjansen in #1931
- Prevent fatal error in
loadUserByOAuthUserResponse()
whennickname
is not available in OAuth response by @stloyd in #1913 - Fixed wrong PHP version used in CI by @stloyd in #1941
- Fix CS and PHPStan by @Seb33300 in #1938
- Remove
symfony/templating
by @GromNaN in #1940 - Temporary skip broken test on Symfony 6 by @stloyd in #1942
- Don't use native file session in tests by @stloyd in #1943
- Remove BC layer for Symfony 4.4 by @stloyd in #1945
New Contributors
- @Seb33300 made their first contribution in #1884
- @dlondero made their first contribution in #1899
- @reyostallenberg made their first contribution in #1933
- @lyrixx made their first contribution in #1936
- @pimjansen made their first contribution in #1931
- @GromNaN made their first contribution in #1940
Full Changelog: 2.0.0-BETA2...2.0.0-BETA3