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)inMissingProviderConfigExceptionin 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
providerandoptionskeys (BC break). The provider array key tells the factory what to instantiate, and the options value is passed to theProviderconstructor. Read the documentation on local/environment-specific configuration for specific implementation details and examples. - 
#3 allows the username to default to
$resourceOwner->getId()in methodgetUsernameFromResourceOwner(ResourceOwnerInterface $resourceOwner) : stringif methods$resourceOwner->getEmail()and$resourceOwner->getNickname()don't exist, instead of throwing anUnexpectedResourceOwnerTypeException. 
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.