Social Auth Vkontakte module is a vk.com Authentication integration for Drupal. It is based on the Social Auth and Social API projects.
Based on the official PHP SDK. Required the PHP 7.1 or later.
Requirements
This module requires the following modules and libraries:
- Social Auth - https://drupal.org/project/social_auth
- Social API - https://drupal.org/project/social_api
Installation
To install this module and the required libraries, use composer:
composer require 'drupal/social_auth_vk:^4.0'
Migrate to 4.x
To migrate to version 4.x, you must do the following steps
- Uninstall module:
drush pmu social_auth_vk - Install newer version via composer:
composer require 'drupal/social_auth_vk:^4.0' - Clear cache:
drush cr - Enable module:
drush en social_auth_vk - Enable module:
drush en social_auth_vk - Check "Client ID" and "Client secret" values on the settings page
- Update the “Redirect URL” value in the VK application to the value from the “Authorized redirect URL” on the settings page.
How it works
Users can click on the Vkontakte logo on the Social Auth Login block. You can also add a button or link anywhere on the site that points to /user/login/vk, so theming and customizing the button or link is very flexible.
When the user opens the /user/login/vk link, it automatically takes the user to VK Accounts for authentication. VK then returns the user to the Drupal site. If we have an existing Drupal user with the same email address provided by VK or the user has previously registered using VK, the user is logged in. If not, a new user account is created. Also, a VK account can be associated with an authenticated user.
Try to run the demo from https://github.com/thelebster/drupal8-social-auth-vk-demo.
Project information
Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed.Maintenance fixes only
Considered feature-complete by its maintainers.- Project categories: Access control
- Ecosystem: Social Auth
71 sites report using this module
- Created by ugolek on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.





