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.

Follow the Step-by-Step 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.
  • vkontakte1
  • 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
  • You will be asked for a verification code that will be sent on the phone number registered with VKontakte.
  • vkontakte3
  • 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.
  • 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=

Free Trial

If you are facing any difficulty please mail us on info@miniorange.com.