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 = "")
339339 public function validateAccessToken ($ accessToken )
340340 {
341341 $ keys = $ this ->getJwtVerificationKeys ();
342- $ tokenClaims = (array )JWT ::decode ($ accessToken , $ keys, [ ' RS256 ' ] );
342+ $ tokenClaims = (array )JWT ::decode ($ accessToken , $ keys );
343343
344344 $ this ->validateTokenClaims ($ tokenClaims );
345345
Original file line number Diff line number Diff line change 33namespace TheNetworg \OAuth2 \Client \Token ;
44
55use Firebase \JWT \JWT ;
6- use InvalidArgumentException ;
7- use League \OAuth2 \Client \Tool \RequestFactory ;
86use RuntimeException ;
7+ use TheNetworg \OAuth2 \Client \Provider \Azure ;
98
109class AccessToken extends \League \OAuth2 \Client \Token \AccessToken
1110{
1211 protected $ idToken ;
1312
1413 protected $ idTokenClaims ;
1514
15+ /**
16+ * @param Azure $provider
17+ */
1618 public function __construct (array $ options , $ provider )
1719 {
1820 parent ::__construct ($ options );
@@ -27,7 +29,7 @@ public function __construct(array $options, $provider)
2729 $ tks = explode ('. ' , $ this ->idToken );
2830 // Check if the id_token contains signature
2931 if (3 == count ($ tks ) && !empty ($ tks [2 ])) {
30- $ idTokenClaims = (array )JWT ::decode ($ this ->idToken , $ keys, [ ' RS256 ' ] );
32+ $ idTokenClaims = (array )JWT ::decode ($ this ->idToken , $ keys );
3133 } else {
3234 // The id_token is unsigned (coming from v1.0 endpoint) - https://msdn.microsoft.com/en-us/library/azure/dn645542.aspx
3335
You can’t perform that action at this time.
0 commit comments