Skip to content

phly-expressive-oauth2clientauthentication 2.0.0

Latest
Compare
Choose a tag to compare
@weierophinney weierophinney released this 12 Nov 17:52
· 2 commits to master since this release
2.0.0

Added

  • #3 adds support for all League OAuth2 Clients that inherits from the upstream League\OAuth2\Client\Provider\AbstractProvider.

  • #3 adds the method forProviderKey(string $provider) in MissingProviderConfigException in order to assert that the provider key has been set for providers in the configuration.

Changed

  • #3 changes array disposition in the configuration files to include provider and options keys (BC break). The provider array key tells the factory what to instantiate, and the options value is passed to the Provider constructor. Read the documentation on local/environment-specific configuration for specific implementation details and examples.

  • #3 allows the username to default to $resourceOwner->getId() in method getUsernameFromResourceOwner(ResourceOwnerInterface $resourceOwner) : string if methods $resourceOwner->getEmail() and $resourceOwner->getNickname() don't exist, instead of throwing an UnexpectedResourceOwnerTypeException.

Deprecated

  • Nothing.

Removed

  • #3 removes UnsupportedProviderException, as it is not used anymore.

  • #3 removes UnexpectedResourceOwnerTypeException, as it is not used anymore.

Fixed

  • #3 fixes a namespace reference within a shipped config file.