You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the function grantAccessTokenRefreshToken in OAuth2.php, it does a fetch for the current token object,
$token = $this->storage->getRefreshToken($input["refresh_token"]);
if ($token === null || $client->getPublicId() !== $token->getClientId()) {
.... }
In the above condition, $token->getClientId() leads to null as the client is not set on the token object.
I'm not sure if this is a bug or not, I'm a new user so just trying to understand the library and was runnin throught the refresh bit to get it working, I had to put in $token->setClient($client); before the condition is checked above to get it working -> but not happy with putting it in this way.
Could you check and let me know if you think its something specific to my implementation, i'm using sylius standard at the moment with the current build.
The text was updated successfully, but these errors were encountered:
If your client is empty on the RefreshToken object it's probably a mapping issue...
Are you using the FOSOAuthServerBundle or the standalone lib?
You should browse your database to be sure that the Client relation is set on the AccessToken and RefreshToken tables.
In the function grantAccessTokenRefreshToken in OAuth2.php, it does a fetch for the current token object,
$token = $this->storage->getRefreshToken($input["refresh_token"]);
if ($token === null || $client->getPublicId() !== $token->getClientId()) {
.... }
In the above condition, $token->getClientId() leads to null as the client is not set on the token object.
I'm not sure if this is a bug or not, I'm a new user so just trying to understand the library and was runnin throught the refresh bit to get it working, I had to put in $token->setClient($client); before the condition is checked above to get it working -> but not happy with putting it in this way.
Could you check and let me know if you think its something specific to my implementation, i'm using sylius standard at the moment with the current build.
The text was updated successfully, but these errors were encountered: