我想尝试这种OAuth2用户 - 服务器实例(https://github.com/alexbilbie/oauth2-example-auth-server
),但是当我要运行它给了我错误" Fatal error: Interface 'OAuth2\Storage\ClientInterface' not found in /var/www/oauth2-auth-server/model_client.php on line 2 "
的OAuth 2.0实例验证服务器
我想我需要添加到自动加载机我composer.json做到了但永远它给了我这个错误。但我也认为在oauth.php我发现这行:
// Initiate the auth server with the models
$server = new \OAuth2\AuthServer(new ClientModel, new SessionModel, new ScopeModel);
但有在OAuth文件夹中没有任何AuthServer
?有没有人使用过这个例子。提前致谢!
您是否在Composer中使用'composer.json'文件来安装和管理依赖项? –
是Brodie,我正在使用composer.json –