Renren Login Plugin / 人人登录插件


(Erick Guan) #1

Renren is Chinese clone of Facebook, which is losing appealing to its user. Everybody tend to use Wechat which requires me to send tons of my personal information and gov credential for website. It’s why I can’t test wechat strategy. Fuck gov.

Authenticate with discourse with Renren.

通过人人登录 Discourse。

Register Client Key & Secert / 申请人人接入

  1. 登录人人开放平台,注册填写相关信息。
  2. 点击创建应用
  3. 填写相关信息。应用根域名填写根域名。如图所示。
  4. 在申请到的后台找到刚申请到的引用,概览中即可以获得keysecret,将其填入 Discourse 设置中。

Installation / 安装

Docker 安装

app.yml

hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - mkdir -p plugins
          - git clone https://github.com/discourse/docker_manager.git

最后一行 - git clone https://github.com/discourse/docker_manager.git 后添加:

- git clone https://github.com/fantasticfears/renren-login.git

Manual / 手动安装

Run rake plugin:install repo=https://github.com/fantasticfears/renren-login in your discourse directory

In development mode, run rake assets:clean

In production, recompile your assets: rake assets:precompile

在您 Discourse 目录中运行 rake plugin:install repo=https://github.com/fantasticfears/renren-login

在开发者模式下,运行 rake assets:clean

在生产模式下,重编译 assets rake assets:precompile

Usage / 使用

Go to Site Settings’s login category, fill in the client id and client secret.

进入站点设置的登录分类,填写 client id 和 client serect。

Issue / 问题

Visit topic on Discourse Meta or GitHub Issues.

访问Discourse Meta上的主题GitHub Issues


Login Strategy for Chinese Discourse / Discourse 登录插件列表
(David Huang) #2

Thanks for providing these login plugins for Chinese users.
Is there any plan to create a Microsoft Account Login Plugin?