Opauth strategy for vk.com authentication.
Based on Opauth's LinkedIn Oauth2 Strategy.
-
Install opauth-vk:
cd path_to_opauth/Strategy git clone git@github.com:tykarol/opauth-vk.git VK
-
Create a VK application at https://vk.com/apps?act=manage
- Make sure that redirect URI is set to actual OAuth 2.0 callback URL, usually
http://path_to_opauth/vk/oauth2callback
- Make sure that redirect URI is set to actual OAuth 2.0 callback URL, usually
-
Configure opauth-vk strategy.
-
Direct user to
http://path_to_opauth/vk
to authenticate
Required parameters:
<?php
'VK' => array(
'app_id' => 'YOUR CLIENT ID',
'app_secret' => 'YOUR CLIENT SECRET'
)
Optional parameters:
scope
, response_type
, 'v', 'display'
For scope
, separate each scopes with a comma (,). Eg. offline,email,wall
. All available scops can be found here.
opauth-vk is MIT Licensed