Easy integration with OAuth 2.0 service providers.
Please also refer to the changelog notes for 1.0.0-alpha1, 1.0.0-alpha2, 1.0.0-beta1, and 1.0.0-beta2.
StandardProvider
to GenericProvider
.AbstractProvider
. It was previously handled in the AbstractGrant
.Content-Type
header with value of application/x-www-form-urlencoded
to the request header when retrieving access tokens. This adheres to the OAuth 2.0 specification and fixes issues where certain OAuth servers expect this header.json_encode()
serialization of AccessToken; when using json_encode()
on an AccessToken, it will return a JSON object with these properties: access_token
, refresh_token
, and expires_in
.AbstractProvider::ACCESS_TOKEN_METHOD_GET
to AbstractProvider::METHOD_GET
.AbstractProvider::ACCESS_TOKEN_METHOD_POST
to AbstractProvider::METHOD_POST
.AbstractProvider::prepareUserDetails()
to AbstractProvider::createUser()
.AbstractProvider::getUserDetails()
to AbstractProvider::getUser()
.$token
parameter from AbstractProvider::getDefaultHeaders()
.AbstractProvider::getBaseAccessTokenUrl()
to accept a required array of parameters, allowing providers the ability to vary the access token URL, based on the parameters.README.PROVIDERS.md
.README.PROVIDER-GUIDE.md
.This release contains numerous BC breaks from the 0.x series. Please note these breaks and refer to the upgrade guide.
public
properties have been set as protected
or private
and getters/setters have been introduced for access to these properties.Provider\ProviderInterface
has been removed. Please extend from and override Provider\AbstractProvider
.Entity\User
has been removed. Providers should implement the Provider\UserInterface
and provide user functionality instead of expecting it in this base library.Grant\GrantInterface
has been removed. Providers needing to provide a new grant type should extend from and override Grant\AbstractGrant
.Provider\StandardProvider
has been introduced, which may be used as a client to integrate with most OAuth 2.0 compatible servers.Grant\GrantFactory
has been introduced as a means to register and retrieve singleton grants from a registry.Tool\BearerAuthorizationTrait
and Tool\MacAuthorizationTrait
), which providers may use to enable these header authorization types.publicProfileUrl
was not set, generating a PHP notice; this has been fixed.getAccessToken()
requestsgetHeaders()
to ProviderInterface and updated AbstractProvider to provide the method$authorizationHeader
propertygetResponseBody()
method to IDPException