File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -339,7 +339,7 @@ public function getLogoutUrl($post_logout_redirect_uri = "")
339
339
public function validateAccessToken ($ accessToken )
340
340
{
341
341
$ keys = $ this ->getJwtVerificationKeys ();
342
- $ tokenClaims = (array )JWT ::decode ($ accessToken , $ keys, [ ' RS256 ' ] );
342
+ $ tokenClaims = (array )JWT ::decode ($ accessToken , $ keys );
343
343
344
344
$ this ->validateTokenClaims ($ tokenClaims );
345
345
Original file line number Diff line number Diff line change 3
3
namespace TheNetworg \OAuth2 \Client \Token ;
4
4
5
5
use Firebase \JWT \JWT ;
6
- use InvalidArgumentException ;
7
- use League \OAuth2 \Client \Tool \RequestFactory ;
8
6
use RuntimeException ;
7
+ use TheNetworg \OAuth2 \Client \Provider \Azure ;
9
8
10
9
class AccessToken extends \League \OAuth2 \Client \Token \AccessToken
11
10
{
12
11
protected $ idToken ;
13
12
14
13
protected $ idTokenClaims ;
15
14
15
+ /**
16
+ * @param Azure $provider
17
+ */
16
18
public function __construct (array $ options , $ provider )
17
19
{
18
20
parent ::__construct ($ options );
@@ -27,7 +29,7 @@ public function __construct(array $options, $provider)
27
29
$ tks = explode ('. ' , $ this ->idToken );
28
30
// Check if the id_token contains signature
29
31
if (3 == count ($ tks ) && !empty ($ tks [2 ])) {
30
- $ idTokenClaims = (array )JWT ::decode ($ this ->idToken , $ keys, [ ' RS256 ' ] );
32
+ $ idTokenClaims = (array )JWT ::decode ($ this ->idToken , $ keys );
31
33
} else {
32
34
// The id_token is unsigned (coming from v1.0 endpoint) - https://msdn.microsoft.com/en-us/library/azure/dn645542.aspx
33
35
You can’t perform that action at this time.
0 commit comments