File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 2424 "ext-mbstring" : " *" ,
2525 "guzzlehttp/guzzle" : " ^6.2 | ^7.0" ,
2626 "league/oauth2-client" : " ^2.5.0" ,
27- "firebase/php-jwt" : " ^5.0 | ^ 6.0"
27+ "firebase/php-jwt" : " ^6.0"
2828 },
2929 "require-dev" : {
3030 "phpunit/phpunit" : " ^4.8" ,
Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ class Configuration
157157 *
158158 * @var string
159159 */
160- protected $ userAgent = '[xero-php-oauth2 (2.23.0 )] ' ;
160+ protected $ userAgent = '[xero-php-oauth2 (2.23.1 )] ' ;
161161
162162 /**
163163 * Debug switch (default set to false)
@@ -697,7 +697,7 @@ public static function toDebugReport()
697697 $ report .= ' OS: ' . php_uname () . PHP_EOL ;
698698 $ report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL ;
699699 $ report .= ' OpenAPI Spec Version: 2.38.0 ' . PHP_EOL ;
700- $ report .= ' SDK Package Version: 2.23.0 ' . PHP_EOL ;
700+ $ report .= ' SDK Package Version: 2.23.1 ' . PHP_EOL ;
701701 $ report .= ' Temp Folder Path: ' . self ::getDefaultConfiguration ()->getTempFolderPath () . PHP_EOL ;
702702
703703 return $ report ;
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ class JWTClaims
3636 private function verify ($ token ) {
3737 $ json = file_get_contents ('https://identity.xero.com/.well-known/openid-configuration/jwks ' );
3838 $ jwks = json_decode ($ json , true );
39- $ supportedAlgorithm = array ( ' RS256 ') ;
39+ $ supportedAlgorithm = ( object ) [ ' alg ' =>[ ' RS256 ', ' ES256 ' ]] ;
4040 $ verifiedJWT = JWT ::decode ($ token , JWK ::parseKeySet ($ jwks ), $ supportedAlgorithm );
4141
4242 return $ verifiedJWT ;
You can’t perform that action at this time.
0 commit comments