xdrew/oauth2-odnoklassniki

Odnoklassniki provider for league/oauth2-client

0.2.2 2016-10-15 19:21 UTC

This package is not auto-updated.

Last update: 2024-04-13 17:46:29 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 
]);