Skip to content

Commit 86e41ce

Browse files
author
Cerlin
committed
Saving the claim so that we can reuse while re-issuing new tokens
1 parent e2eb50e commit 86e41ce

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Box/Auth/AppAuth.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,18 @@ class AppAuth
1919
* @var FolderService
2020
*/
2121
protected $folder_service = null;
22+
2223
/**
2324
* @var FileService
2425
*/
2526
protected $file_service = null;
27+
28+
/**
29+
* Save the claim so that we can reuse while re-issuing new tokens
30+
* @var JWTClaim
31+
*/
32+
protected $claim;
33+
2634
/**
2735
* @var
2836
*/
@@ -50,6 +58,8 @@ public function __construct($app_auth_info)
5058
*/
5159
public function authenticate(JWTClaim $claim)
5260
{
61+
$this->claim = $claim;
62+
5363
// $key Has to be the key file handler opened using openssl method
5464
$key = openssl_get_privatekey("file://" . getcwd() . '/' . $this->private_key, $this->pass_phrase);
5565

0 commit comments

Comments
 (0)