luozhihua / keycloak-services-social-weixin

keycloak social weixin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

keycloak-services-social-weixin

中文

Wechat Login for Keycloak

Java CI with Maven Maven Package

Live Example

How to use it

To install the social weixin one has to:

  • Add the jar to the Keycloak server:

    • cp target/keycloak-services-social-weixin-*.jar _KEYCLOAK_HOME_/providers/
  • Add three templates to the Keycloak server:

    • cp templates/realm-identity-provider-weixin.html _KEYCLOAK_HOME_/themes/base/admin/resources/partials
    • cp templates/realm-identity-provider-weixin-ext.html _KEYCLOAK_HOME_/themes/base/admin/resources/partials

How to build

mvn install

Maven package

支持最新的 keycloak,你可以使用我打的包:https://github.com/Jeff-Tian/keycloak-services-social-weixin/packages/225091

使用截图

image

Docker 镜像

我也打包了一个包含微信 idp 的 keycloak server docker 镜像

docker pull jefftian/keycloak-heroku:latest

一键部署

点击这个按钮,可以部署一个包含微信登录的Keycloak到你自己的 Heroku: Deploy to Heroku

Release Notes

  • 20180730

1 增加自适应微信登录功能。

2 账号关联默认使用微信unionid,如unionid不存在则使用openId

3 pc和wechat使用同一套账号则必须绑定同一个开放平台,否则会绑定不同账号

4 wechat信息非必填,默认使用pc方式登录

  • 20200514

1 增加 customizedLoginUrlForPc 功能。

About

keycloak social weixin


Languages

Language:Java 73.3%Language:HTML 26.7%