diff options
author | M. Dent <dentm42@gmail.com> | 2019-01-09 19:09:20 +0100 |
---|---|---|
committer | M. Dent <dentm42@gmail.com> | 2019-01-09 19:09:20 +0100 |
commit | b22caef65fe2d87d702592bd0ecb057d21c168dd (patch) | |
tree | e7c03427486d012a2996ae21b25070eeafca74c4 /vendor/bshaffer/oauth2-server-php/src/OAuth2/Server.php | |
parent | db4281164cf788eece76771bf69f08d7926600f2 (diff) | |
parent | dbd230da7407ac70483c004bc82f4b8619c42760 (diff) | |
download | volse-hubzilla-b22caef65fe2d87d702592bd0ecb057d21c168dd.tar.gz volse-hubzilla-b22caef65fe2d87d702592bd0ecb057d21c168dd.tar.bz2 volse-hubzilla-b22caef65fe2d87d702592bd0ecb057d21c168dd.zip |
Merge branch 'composer_updates' into 'dev'
update composer libs
See merge request hubzilla/core!1455
Diffstat (limited to 'vendor/bshaffer/oauth2-server-php/src/OAuth2/Server.php')
-rw-r--r-- | vendor/bshaffer/oauth2-server-php/src/OAuth2/Server.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/vendor/bshaffer/oauth2-server-php/src/OAuth2/Server.php b/vendor/bshaffer/oauth2-server-php/src/OAuth2/Server.php index 62ae8970d..cf040c2bc 100644 --- a/vendor/bshaffer/oauth2-server-php/src/OAuth2/Server.php +++ b/vendor/bshaffer/oauth2-server-php/src/OAuth2/Server.php @@ -88,12 +88,12 @@ class Server implements ResourceControllerInterface, /** * @var array */ - protected $grantTypes = []; + protected $grantTypes = array(); /** * @var array */ - protected $responseTypes = []; + protected $responseTypes = array(); /** * @var TokenTypeInterface @@ -161,6 +161,7 @@ class Server implements ResourceControllerInterface, // merge all config values. These get passed to our controller objects $this->config = array_merge(array( 'use_jwt_access_tokens' => false, + 'jwt_extra_payload_callable' => null, 'store_encrypted_token_string' => true, 'use_openid_connect' => false, 'id_lifetime' => 3600, @@ -840,7 +841,7 @@ class Server implements ResourceControllerInterface, $refreshStorage = $this->storages['refresh_token']; } - $config = array_intersect_key($this->config, array_flip(explode(' ', 'store_encrypted_token_string issuer access_lifetime refresh_token_lifetime'))); + $config = array_intersect_key($this->config, array_flip(explode(' ', 'store_encrypted_token_string issuer access_lifetime refresh_token_lifetime jwt_extra_payload_callable'))); return new JwtAccessToken($this->storages['public_key'], $tokenStorage, $refreshStorage, $config); } @@ -1015,4 +1016,4 @@ class Server implements ResourceControllerInterface, { return isset($this->config[$name]) ? $this->config[$name] : $default; } -}
\ No newline at end of file +} |