Skip to content

2.0.0-BETA3

Pre-release
Pre-release
Compare
Choose a tag to compare
@stloyd stloyd released this 20 Aug 17:34
· 72 commits to master since this release
208ce9c

Changelog

  • BC Break: Dropped support for Symfony: 4.4 & 6.0.*,
  • BC Break: Class Templating\Helper\OAuthHelper was merged into Twig\Extension\OAuthRuntime,
  • BC Break: When resource owner class doesn't define TYPE constant or is null, then key will be calculated by converting its class name without ResourceOwner suffix to snake_case, if neither is felt, then \LogicException will be thrown,
  • Deprecated: method UserResponseInterface::getUsername() was deprecated in favour of UserResponseInterface::getUserIdentifier() to match changes in Symfony Security component,
  • Enhancement: @internal resourceOwner oauth types in Configuration are calculated automatically by scandir. All classes extended from GenericOAuth[X]ResourceOwner get oauth[X] type. If class only implements ResourceOwnerInterface then its oauth type is unknown. ResourceOwner key (parameter type in configs) should have defined ResourceOwner::TYPE constant. Each user defined custom ResourceOwner class that implemented ResourceOwnerInterface will be registered automatically. If autoconfigure option is disabled user have to add the tag hwi_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 in AbstractResourceOwner::getResponseContent() method,
  • Bugfix: Current matched Firewall is respected during generation of resource owner check path links,
  • Bugfix: Prevent fatal error in OAuthUserProvider::loadUserByOAuthUserResponse() when nickname 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 into Twig\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() into PathUserResponse 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 in AbstractResourceOwner::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() when nickname 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

Full Changelog: 2.0.0-BETA2...2.0.0-BETA3