Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Commit

Permalink
Merge branch 'release/0.5.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Retterer committed Dec 21, 2016
2 parents f714743 + 521443d commit 9cd7563
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ Change Log

All library changes, in descending order.

Version 0.5.1
-------------

**Released on Dec 21, 2016.**

- Update JWT Code for Core SDK Updates

Version 0.5.0
-------------

Expand Down
7 changes: 7 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ Change Log

All library changes, in descending order. something

Version 0.5.1
-------------

**Released on Dec 21, 2016.**

- Update JWT Code for Core SDK Updates

Version 0.5.0
-------------

Expand Down
5 changes: 5 additions & 0 deletions docs/upgrading.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ This page contains specific upgrading instructions to help you migrate between
Stormpath-Laravel releases.


Version 0.5.0 -> Version 0.5.1
------------------------------
If you are relying on the JWT package from this, you will need to update your use to use the new namespace,
Firebase\JWT\JWT.

Version 0.4.2 -> Version 0.5.0
------------------------------
No Changes Needed
Expand Down
4 changes: 2 additions & 2 deletions src/Http/Controllers/MeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ private function getPropertyValue($account, $prop)

private function getAccountFromAccessToken($accessToken)
{
\JWT::$leeway = 10;
\Firebase\JWT\JWT::$leeway = 10;

$jwt = \JWT::decode($accessToken, config('stormpath.client.apiKey.secret'), ['HS256']);
$jwt = \Firebase\JWT\JWT::decode($accessToken, config('stormpath.client.apiKey.secret'), ['HS256']);

$expandsArray = [];
$expands = config('stormpath.web.me.expand');
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Helpers/IdSiteSessionHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function create(\Stormpath\Resource\Account $account)
$refreshTokenCookieConfig = config('stormpath.web.refreshTokenCookie');
$application = app('stormpath.application');
try {
$jwt = \JWT::encode([
$jwt = \Firebase\JWT\JWT::encode([
'sub' => $account->href,
'iat' => time()-1,
'status' => 'AUTHENTICATED',
Expand Down

0 comments on commit 9cd7563

Please sign in to comment.