rchntrl/silverstripe-vk-connect

将VK Connect集成到SilverStripe中

安装: 22

依赖项: 0

建议者: 0

安全: 0

星标: 0

关注者: 1

分支: 1

公开问题: 0

类型:silverstripe-module

dev-master 2016-02-18 06:39 UTC

This package is not auto-updated.

Last update: 2024-10-02 07:25:59 UTC


README

将Vk Connect集成到SilverStripe中。(受 * Facebook Connect Integration Module

维护者联系方式

  • Nurgazy Sarbalaev <archantyrael (at) gmail (dot) com>

要求

  • SilverStripe 3.1

概述

该模块提供了一个 基本 接口,允许用户使用他们的Vkontakte账户信息登录您的网站,在现有的SilverStripe会员系统中创建单一登录。

安装

composer require "rchntrl/silverstripe-vkconnect" "dev-master"


[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'


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.

通过VK登录


### Options

All the following values are set either via the Config API like follows

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

Or (more recommended) through the YAML API 

  VkControllerExtension:
    option: value

### app_id

Your app id. Found on the VK Developer Page.

### api_secret

VK API secret. Again, from your Application page.

### create_member 

  Optional, default: true

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.

### member_groups

  Optional, default ''
	
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:

  VkControllerExtension:
    member_groups:
      - vk_members

### permissions

  Optional, default 'email'


## License

Released under the BSD-3-Clause License.