代码改变世界

keycloak 添加 identity provider

2023-02-14 09:18  qgbo  阅读(339)  评论(0编辑  收藏  举报

1.   启动 keycloak:

下载keycloak-20.0.3.zip, windows 版本。

2. kc.bat start-dev, 本地可以打开  localhost:8080

3.启动 一个 openId connect 服务。

这里用 identity:  https://github.com/DuendeSoftware/Samples/tree/main/IdentityServer/v6/Quickstarts/6_JS_with_backend

这个本地运行,有个 https://localhost:5001 的OIDC服务

4.打开keycloak,  有3个地方可以填。secret  这样写:sha256(secret)= 2bb80d537b1da3e38bd30361aa855686bde0eacd7162fef6a25fe97bf527a25b