xdrew/oauth2-odnoklassniki

Odnoklassniki provider for league/oauth2-client

Installs: 52

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 1

Open Issues: 0

pkg:composer/xdrew/oauth2-odnoklassniki

0.2.2 2016-10-15 19:21 UTC

This package is not auto-updated.

Last update: 2025-12-21 02:50:22 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 
]);