Skip to content

Commit

Permalink
Release 5.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
joshcanhelp committed Dec 9, 2019
1 parent 7a7f098 commit 1bf6d85
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
15 changes: 14 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
# Change Log
# CHANGELOG

## [5.7.0](https://github.com/auth0/auth0-PHP/tree/5.7.0) (2019-12-09)
[Full Changelog](https://github.com/auth0/auth0-PHP/compare/5.6.0...5.7.0)

**Added**
- Add default scopes to Auth0 class [\#406](https://github.com/auth0/auth0-PHP/pull/406) ([joshcanhelp](https://github.com/joshcanhelp))
- fix: add missing options for renewTokens method [\#405](https://github.com/auth0/auth0-PHP/pull/405) ([bkotrys](https://github.com/bkotrys))

**Deprecated**
- Add deprecation notices for removals in v7 major release [\#407](https://github.com/auth0/auth0-PHP/pull/407) ([joshcanhelp](https://github.com/joshcanhelp))

**Fixed**
- Fix mkdir race condition in FileSystemCacheHandler [\#375](https://github.com/auth0/auth0-PHP/pull/375) ([B-Galati](https://github.com/B-Galati))

## [5.6.0](https://github.com/auth0/auth0-PHP/tree/5.6.0) (2019-09-26)
[Full Changelog](https://github.com/auth0/auth0-PHP/compare/5.5.1...5.6.0)
Expand Down
2 changes: 1 addition & 1 deletion src/API/Helpers/ApiClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class ApiClient
{

const API_VERSION = '5.6.0';
const API_VERSION = '5.7.0';

protected static $infoHeadersDataEnabled = true;

Expand Down
8 changes: 4 additions & 4 deletions tests/Auth0Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -268,15 +268,15 @@ public function testThatRenewTokensFailsIfNoAccessOrIdTokenReturned()
*/
public function testThatRenewTokensSucceeds()
{
$id_token = JWT::encode( ['sub' => uniqid()], '__test_client_secret__' );
$id_token = JWT::encode( ['sub' => uniqid()], '__test_client_secret__' );
$request_history = [];
$mock = new MockHandler( [
$mock = new MockHandler( [
// Code exchange response.
new Response( 200, self::$headers, '{"access_token":"1.2.3","refresh_token":"2.3.4"}' ),
// Refresh token response.
new Response( 200, self::$headers, '{"access_token":"__test_access_token__","id_token":"'.$id_token.'"}' ),
] );
$handler = HandlerStack::create($mock);
$handler = HandlerStack::create($mock);
$handler->push( Middleware::history($request_history) );

$add_config = [
Expand All @@ -295,7 +295,7 @@ public function testThatRenewTokensSucceeds()
$this->assertEquals( $id_token, $auth0->getIdToken() );

$renew_request = $request_history[1]['request'];
$renew_body = json_decode($renew_request->getBody(), true);
$renew_body = json_decode($renew_request->getBody(), true);
$this->assertEquals( 'openid', $renew_body['scope'] );
$this->assertEquals( '__test_client_secret__', $renew_body['client_secret'] );
$this->assertEquals( '__test_client_id__', $renew_body['client_id'] );
Expand Down

0 comments on commit 1bf6d85

Please sign in to comment.