Step by Step Guide to Configure VKontakte as an OAuth Server

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 :

  1. Go to https://vk.com/apps?act=manage and log into your VKontakte account.
  2. You will be presented with following screen. Click on Create Application.

    vkontakte1

  3. 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.

    vkontakte2

  4. You will be asked for a verification code that will be sent on the phone number registered with VKontakte.

    vkontakte3

  5. 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.

  6. 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.

    vkontakte4

You can download OAuth Client plugin using the following link.

OAuth Single Sign On – SSO (OAuth client)

 VKontakte Endpoints and Scope:

Client ID : from the step 6 above
Client Secret : from the step 6 above
Scope: openid
Authorize Endpoint: https://oauth.vk.com/authorize
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 info@miniorange.com.