keycloak-services-social-wechat-work

Keycloak企业微信登录插件

Keycloak 15.0.0 测试通过【感谢potterhe适配新版】

# build from source
mvn clean package

# add the jar to the Keycloak server (create `providers` folder if needed)
mkdir -p $KEYCLOAK_HOME/providers/
cp target/keycloak-services-social-wechat-work.jar $KEYCLOAK_HOME/providers/

# add config page templates to the Keycloak server
cp themes/base/admin/resources/partials/realm-identity-provider-wechat-work.html $KEYCLOAK_HOME/themes/base/admin/resources/partials/
cp themes/base/admin/resources/partials/realm-identity-provider-wechat-work-ext.html $KEYCLOAK_HOME/themes/base/admin/resources/partials/

# add `<module name="org.infinispan" services="import"/>` to dependencies
sed -ie 's#<dependencies>#<dependencies><module name="org.infinispan" services="import"/>#' $KEYCLOAK_HOME/modules/system/layers/keycloak/org/keycloak/keycloak-services/main/module.xml

Dev

# format code
mvn com.coveo:fmt-maven-plugin:format

Reference