Skip to content

rainbowechoes/keycloak-social-wechat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

keycloak 微信第三方登录

对 keycloak 15.0.0 版本实现了微信第三方登录。

优先获取用户 unionid 作为 keycloak 用户 username(即 keycloak 中的唯一标识),如果没有,则以 openid 作为唯一标识

使用方式

  1. 进入容器
docker exec -it keycloak /bin/bash

创建 providers 目录,并具备对应权限

mkdir -p /opt/jboss/keycloak/providers/
chown jboss:root /opt/jboss/keycloak/providers/
chmod 755 /opt/jboss/keycloak/providers/
  1. 将文件放入容器
docker cp keycloak-social-wechat-15.0.0-jar-with-dependencies.jar keycloak:/opt/jboss/keycloak/providers/
docker cp templates/realm-identity-provider-wechat.html keycloak:/opt/jboss/keycloak/themes/base/admin/resources/partials
docker cp templates/realm-identity-provider-wechat-ext.html keycloak:/opt/jboss/keycloak/themes/base/admin/resources/partials
docker restart keycloak
  1. 创建 realm,添加 provider

About

keycloak 15.0.0 版本微信第三方登录

Resources

License

Stars

Watchers

Forks

Packages

No packages published