2017 © Pedro Peláez
 

silverstripe-module silverstripe-vk-connect

Integration of VK Connect into SilverStripe

image

rchntrl/silverstripe-vk-connect

Integration of VK Connect into SilverStripe

  • Thursday, February 18, 2016
  • by rchntrl
  • Repository
  • 1 Watchers
  • 0 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

silverstripe-vk-connect

Integration of Vk Connect into SilverStripe. (Inspired from * Facebook Connect Integration Module), (*1)

Maintainer Contact

  • Nurgazy Sarbalaev

Requirements

  • SilverStripe 3.1

Overview

The module provides a basic interface which allows users to login to your website using their Vkontakte account details, creating a single sign-on within the existing SilverStripe member system., (*2)

Installation

composer require "rchntrl/silverstripe-vkconnect" "dev-master", (*3)


[Register your website / application](https://vk.com/editapp?act=create) with vk.com Set your configuration through the SilverStripe Config API. For example I keep my configuration in `mysite/_config/vkconnect.yml` file:

VkControllerExtension: app_id: 'MyAppID' api_secret: 'Secret', (*4)


Update the database by running `/dev/build` to add the additional fields to the `Member` table and make sure you `?flush=1` when you reload your website.

Login via Vk ```, (*5)

Options

All the following values are set either via the Config API like follows, (*6)

Config::inst()->update('VkControllerExtension', '$option', '$value'), (*7)

Or (more recommended) through the YAML API, (*8)

VkControllerExtension: option: value, (*9)

app_id

Your app id. Found on the VK Developer Page., (*10)

api_secret

VK API secret. Again, from your Application page., (*11)

create_member

Optional, default: true, (*12)

Whether or not to create a Member record in the database with the users information. If you disable this, ensure your code uses $CurrentVkMember rather than $Member. Other access functionality (such as admin access) will not work., (*13)

member_groups

Optional, default '', (*14)

A list of group codes to add the user. For instance if you want every member who joins through VK to be added to a group VK Members set the following:, (*15)

VkControllerExtension: member_groups: - vk_members, (*16)

permissions

Optional, default 'email', (*17)

License

Released under the BSD-3-Clause License., (*18)

The Versions

18/02 2016

dev-master

9999999-dev https://github.com/rchntrl/silverstripe-vk-connect

Integration of VK Connect into SilverStripe

  Sources   Download

BSD-3-Clause

The Requires

 

by Nurgazy Sarbalaev

vkontakte vk silverstripe