2
如何通過Google Play Market帳戶配置我的Symfony 3應用的身份驗證和授權?我試圖用FOSOAuthServerBundle來達到這些目的。該文檔告訴用這種方式創建一個使用ClientManager的客戶端:針對Symfony 3應用的Google Play市場驗證
$clientManager = $this->getContainer()->get('fos_oauth_server.client_manager.default');
$client = $clientManager->createClient();
$client->setRedirectUris(array('http://www.example.com'));
$client->setAllowedGrantTypes(array('token', 'authorization_code'));
$clientManager->updateClient($client);
但是沒有單詞,關於在哪裏放這段代碼。但是我已經擁有從Google Console獲得的憑據。是否可以使用它們來登錄Google Play Market帳戶?如何將它們綁定到自定義身份驗證ProWhere我應該使用這些credintials?在Symfony 3的範圍內有關於這個過程的任何教程?
HWIOAuthBundle與Symfony 3.1不兼容...我應該用什麼東西? – Varg
我更新了與其他圖書館的鏈接。 –
thephpleague有幫助!我遵循了文檔並得到了一個結果。謝謝! – Varg