If you want to login to your WordPress site using your VKontakte username and password, you can simply do it using our WP OAuth Client plugin. Once you configure the VKontakte with WordPress plugin, you can sso/login to your WordPress site using VKontakte credentials. This plugin also allows you to map your WordPress account different roles based on your VKontakte attributes/groups. To know more about other features we provide in WP OAuth Client plugin, you can click here.
Please follow the steps given below to configure your VKontakte account with WordPress and setup the Single Sign On.
Guide to configure VKontakte with WordPress :
- Go to https://vk.com/apps?act=manage and log into your VKontakte account.
- You will be presented with following screen. Click on Create Application.
- You will be shown a form where you have to enter Application Name and Type. Select Platform as Website and fill other details as required. Now click on Connect Site.
You will be asked for a verification code that will be sent on the phone number registered with VKontakte.
After Successful verification, you will be brought to Application Management page. Go to Settings tab. Here you will find Secure Key and Secure Token. These are your Client ID and Client Secret, respectively. Copy these credentials in MO OAuth Plugin configuration on corresponding fields.
- On the same page, you will find a field for Authorized Redirect URL. Enter the same value as shown in MO OAuth Plugin and then Click on Save.
You can download OAuth Client plugin using the following link.
VKontakte Endpoints and Scope:
|Client ID :||from the step 6 above|
|Client Secret :||from the step 6 above|
|Access Token Endpoint:||https://oauth.vk.com/access_token|
|Get User Info Endpoint:||https://api.vk.com/method/users.get?fields=id,name,email,age_range,first_name,gender,last_name,link&access_token=|
If you are facing any difficulty please mail us on email@example.com.