Skip to content

Releases: thephpleague/oauth2-client

1.0.0

19 Aug 23:27
Compare
Choose a tag to compare
  • We are running code-quality builds through Scrutinizer, and we are running unit test builds on the new Travis CI container-based infrastructure.
  • Cleaned up code, as recommended by Scrutinizer.
  • Documentation updates.

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.

1.0.0-beta2

12 Aug 13:47
Compare
Choose a tag to compare
1.0.0-beta2 Pre-release
Pre-release
  • BREAK: Add toArray() to ResourceOwnerInterface.
  • Always attempt to parse responses as JSON and fallback on failure.
  • Add dot notation support to access token resource owner ID.
  • Use the Bearer authorization header for the generic provider.
  • Documentation updates.

1.0.0-beta1

16 Jul 15:40
Compare
Choose a tag to compare
1.0.0-beta1 Pre-release
Pre-release
  • API for 1.0 is now frozen!
  • BREAK: Convert all uses of "User" to "ResourceOwner" to more closely match the OAuth 2.0 specification.
  • BREAK: Rename StandardProvider to GenericProvider.
  • BREAK: Move access token creation to the AbstractProvider. It was previously handled in the AbstractGrant.
  • FIX: Add 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.
  • Enhanced 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.

1.0.0-alpha2

04 Jul 16:34
Compare
Choose a tag to compare
1.0.0-alpha2 Pre-release
Pre-release
  • BREAK: Renamed AbstractProvider::ACCESS_TOKEN_METHOD_GET to AbstractProvider::METHOD_GET.
  • BREAK: Renamed AbstractProvider::ACCESS_TOKEN_METHOD_POST to AbstractProvider::METHOD_POST.
  • BREAK: Renamed AbstractProvider::prepareUserDetails() to AbstractProvider::createUser().
  • BREAK: Renamed AbstractProvider::getUserDetails() to AbstractProvider::getUser().
  • BREAK: Removed $token parameter from AbstractProvider::getDefaultHeaders().
  • BREAK: Modify AbstractProvider::getBaseAccessTokenUrl() to accept a required array of parameters, allowing providers the ability to vary the access token URL, based on the parameters.
  • Removed newline characters from MAC Authorization header.
  • Documentation updates, notably:
    • Moved list of providers to README.PROVIDERS.md.
    • Moved provider creation notes to README.PROVIDER-GUIDE.md.

1.0.0-alpha1

25 Jun 20:35
Compare
Choose a tag to compare
1.0.0-alpha1 Pre-release
Pre-release

This release contains numerous BC breaks from the 0.x series. Please note these breaks and refer to the upgrade guide.

  • BREAK: Requires PHP 5.5.0 and greater.
  • BREAK: All providers have been moved to separate repositories, one for each provider.
  • BREAK: All public properties have been set as protected or private and getters/setters have been introduced for access to these properties.
  • BREAK: The Provider\ProviderInterface has been removed. Please extend from and override Provider\AbstractProvider.
  • BREAK: The Entity\User has been removed. Providers should implement the Provider\UserInterface and provide user functionality instead of expecting it in this base library.
  • BREAK: The Grant\GrantInterface has been removed. Providers needing to provide a new grant type should extend from and override Grant\AbstractGrant.
  • A generic Provider\StandardProvider has been introduced, which may be used as a client to integrate with most OAuth 2.0 compatible servers.
  • A Grant\GrantFactory has been introduced as a means to register and retrieve singleton grants from a registry.
  • Introduced traits for bearer and MAC authorization (Tool\BearerAuthorizationTrait and Tool\MacAuthorizationTrait), which providers may use to enable these header authorization types.

0.12.1

20 Jun 16:07
Compare
Choose a tag to compare
  • FIX: Scope separators for LinkedIn and Instagram are now correctly a single space

0.12.0

16 Jun 02:34
Compare
Choose a tag to compare
  • BREAK: LinkedIn Provider: Default scopes removed from LinkedIn Provider. See "Managing LinkedIn Scopes" in the README for information on how to set scopes. See #327 and #307 for details on this change.
  • FIX: LinkedIn Provider: A scenario existed in which publicProfileUrl was not set, generating a PHP notice; this has been fixed.
  • FIX: Instagram Provider: Fixed scope separator.
  • Documentation updates and corrections.

0.11.0

25 Apr 20:44
Compare
Choose a tag to compare
  • Identity Provider: Better handling of error responses
  • Documentation updates

0.10.1

02 Apr 15:11
Compare
Choose a tag to compare
  • FIX: Invalid JSON triggering fatal error
  • FIX: Sending headers along with auth getAccessToken() requests
  • Now running Travis CI tests on PHP 7
  • Documentation updates

0.10.0

10 Mar 21:51
Compare
Choose a tag to compare
  • Providers: Added getHeaders() to ProviderInterface and updated AbstractProvider to provide the method
  • Providers: Updated all bundled providers to support new $authorizationHeader property
  • Identity Provider: Update IDPException to account for empty strings
  • Identity Provider: Added getResponseBody() method to IDPException
  • Documentation updates, minor bug fixes, and coding standards fixes