我想嘗試這種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 –