定制 rchntrl/silverstripe-vk-connect 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

rchntrl/silverstripe-vk-connect

Composer 安装命令:

composer require rchntrl/silverstripe-vk-connect

包简介

Integration of VK Connect into SilverStripe

README 文档

README

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

Maintainer Contact

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

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.

Installation

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.

Login via 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. 

统计信息

  • 总下载量: 22
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-02-09