xdrew / oauth2-odnoklassniki
Odnoklassniki provider for league/oauth2-client
0.2.2
2016-10-15 19:21 UTC
Requires
- php: >=5.5
- league/oauth2-client: ^1.4
This package is not auto-updated.
Last update: 2025-02-01 22:08:32 UTC
README
This package provides Odnoklassniki integration for OAuth2 Client by the League.
Installation
composer require xdrew/oauth2-odnoklassniki
Configuration
$provider = new xdrew\OAuth2\Client\Provider\Odnoklassniki([ 'clientId' => '1234567', 'clientPublic' => 'CBAPKGGLEBACACACA', 'clientSecret' => 's0meRe4lLySEcRetC0De', 'redirectUri' => 'https://example.org/oauth-endpoint', 'scopes' => ['GET_EMAIL'], // OPTIONAL You should request access to this scope from ok.ru support to get user email 'userFields' => [''], // OPTIONAL ]);