Releases: phly/phly-expressive-oauth2clientauthentication
phly-expressive-oauth2clientauthentication 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)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.
phly-expressive-oauth2clientauthentication 1.0.0
Added
- Adds the method
OAuth2User::getDetail(string $name, $default = null)in
order to fulfill the zend-expressive-authentication 1.0.0 API for the
UserInterface.
Changed
-
The method
OAuth2User::getUserRoles() : arraywas refactored to
OAuth2User::getRoles() : iterablein order to match the
zend-expressive-authentication 1.0.0 API. -
The method
OAuth2User::getUserData() : arraywas refactored to
OAuth2User::getDetails() : arrayin order to match the
zend-expressive-authentication 1.0.0 API.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
phly-expressive-oauth2clientauthentication 0.2.1
Added
- Nothing.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Fixes how the callback factory produces a pipeline. Instead of using an
Applicationinstance derived from theApplicationFactory(which will
receive a shared route collector and shared middleware), it now produces a
MiddlewarePipeinstance into which it pipes the various middleware. It also
creates a new router, based on the type returned from the container (it
assumes no constructor arguments are necessary), and passes that to a new
RouteMiddlewareinstance to ensure it is sandboxed from the main
application.
phly-expressive-oauth2clientauthentication 0.2.0
phly-expressive-oauth2clientauthentication 0.1.3
- Fixes incorrect namespace for ConfigProvider.
Thecomposer.jsonhad an incorrect namespace for the
ConfigProvider, which meant that once injected into aconfig.php
file, an error would immediately occur. This patch fixes that
situation.
phly-expressive-oauth2clientauthentication 0.1.2
Added
- Nothing.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Fixes an import in the DebugProviderMiddlewareFactory for the RedirectResponseFactory to ensure it resolves correctly.
phly-expressive-oauth2clientauthentication 0.1.1
Added
- Adds templates for PlatesPHP, Twig, and zend-view.
- Adds documentation covering templates.
Changed
- Nothing.
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.
phly-expressive-oauth2clientauthentication 0.1.0
Initial release.