This repository was archived by the owner on Jan 29, 2020. It is now read-only.
This repository was archived by the owner on Jan 29, 2020. It is now read-only.
AccessTokenRepository - Valid tokenid handling not present in oauth_access_tokens #70
Closed
Description
Generate a tokenId at "/oauth2/access_token"
'grant_type' => 'client_credentials',
'client_id' => 'client_test',
'client_secret' => 'test',
'scope' => 'test',
Delete the id register from oauth_access_tokens, or recreate the database
Call some resource that will be validated by oAuth, passing the tokenId generated before
it will throw
TypeError raised in file /vendor/zendframework/zend-expressive-authentication-oauth2/src/Repository/Pdo/AccessTokenRepository.php line 118:
Message: array_key_exists() expects parameter 2 to be array, boolean given
I'd paste the isAccessTokenRevoked function with stating return value incorrectly assumes $row is an array, in the case entity doesn't exist in database should return true or throw an exception