league/oauth2-client
OAuth 2.0 client library for PHP. Provides a solid base for implementing “Sign in with …” flows and RFC 6749-compliant integrations, with a GenericProvider for bearer-token services and an extensible architecture for custom providers.
expires is not a number #929SettableRefreshTokenInterface to support setting the refresh token #994AbstractProvider::prepareAccessTokenResponse() #1025
HttpBasicAuthOptionProvider to ease implementation for providers requiring HTTP basic authGuardedPropertyTrait to allow providers the ability to specify properties that may not be overridden by user-defined values passed to the provider constructorAccessTokenInterface and ResourceOwnerAccessTokenInterface to allow providers the ability to override the default AccessTokenUnexpectedValueException on non-JSON responses from access token
request (when calling AbstractProvider::getAccessToken())ProviderRedirectTrait tool for 3rd-party provider libraries to use when
handling provider redirectionsgetResourceOwner() receives a non-JSON Responserandom_compat versions+ being improperly encoded in URL parametersstate option from authorization parametersexpires_in with a value of 0getResponse() to getParsedResponse()getResponse() method that returns the unparsed PSR-7 Response instanceRandomFactory, switched to native random functionsQueryBuilderTrait to standardize query string generation.AccessToken::getValues() to access additional vendor data provided with tokens.resource_owner_id to the JSON-serialized representation of the access token.ArrayAccessorTrait, update AbstractProvider to utilize.expires to serialize access tokens.RequiredParameterTrait to be set as false, null, "0", etc.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.How can I help you explore Laravel packages today?