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
Hi, I created authorize server but am getting this error:
You must supply a storage object implementing \OAuth2\Storage\ClientInterface to use the authorize server.
How to submit a storage object to this server file? Are there any configurations? I would be very grateful for the help!
My Service file:
namespace App\MyBundle\Service\OAuth;
use OAuth2\Server as OAuthServer;
class Server extends OAuthServer
{
protected function createDefaultAuthorizeController()
{
if (!isset($this->storages['client'])) {
throw new \LogicException('You must supply a storage object implementing \OAuth2\Storage\ClientInterface to use the authorize server');
}
...
}
}
I'm useing this package for symfony 5.3
The text was updated successfully, but these errors were encountered:
$storage = newOAuth2\Storage\Pdo(array('dsn' => $dsn, 'username' => $username, 'password' => $password));
$server = newOAuth2\Server($storage);
$server->addGrantType(newOAuth2\GrantType\AuthorizationCode($storage)); // or any grant type you like!$server->handleTokenRequest(OAuth2\Request::createFromGlobals())->send();
Hi, I created authorize server but am getting this error:
You must supply a storage object implementing \OAuth2\Storage\ClientInterface to use the authorize server.
How to submit a storage object to this server file? Are there any configurations? I would be very grateful for the help!
My Service file:
namespace App\MyBundle\Service\OAuth;
use OAuth2\Server as OAuthServer;
class Server extends OAuthServer
{
}
}
I'm useing this package for symfony 5.3
The text was updated successfully, but these errors were encountered: