集成Keycloak与外部身份提供者,使用SAML和Node.js。

huangapple go评论65阅读模式
英文:

Integrate keycloak with external identity provider with SAML and nodeJs

问题

我们有一个使用案例,其中我们有以下场景:

  • 外部身份提供者
  • Keycloak通过SAML协议与外部身份提供者通信
  • Node.js和Angular应用程序用于登录

目标是我们的Angular和Node.js登录网页调用Keycloak,通过SAML登录用户到外部身份提供者。
我们需要这样做,因为我们需要从Keycloak获取JWT令牌,以便对我们的内部服务进行身份验证。
到目前为止,我们已经成功地集成了Keycloak和外部身份提供者通过SAML,如果我们使用Keycloak登录页面并在那里选择身份提供者,登录就可以正常工作。现在我们需要使用我们的登录页面通过Keycloak登录(它将通过外部身份提供者登录),但我们找不到解决方案。

有人可以指导我们正确的方向吗?
谢谢

英文:

We have an use case where we have the following scenario:

  • External identity provider
  • Keycloak communicating with external identity provider through SAML protocol
  • NodeJs and angular application to login

The goal is our login web page on angular and nodeJs to call keycloak to login the user in the external identity provider through SAML.
We need this because we need a JWT token from keycloak to authenticate the requests to our internal services.
Until now we were able to integrate keycloak and the external identity provider through SAML, the login works fine if we use the keycloak login page and select the identity provider there. Now we need to use our login page to login through keycloak (that will login through the external identity provider), but we can't find a solution for that.

Anyone can point us in the right direction?
Thanks

答案1

得分: 0

可以使用keycloak-js来处理它 集成Keycloak与外部身份提供者,使用SAML和Node.js。

英文:

Its possible to use keycloak-js to handle it 集成Keycloak与外部身份提供者,使用SAML和Node.js。

huangapple
  • 本文由 发表于 2023年1月4日 00:35:57
  • 转载请务必保留本文链接:https://go.coder-hub.com/74996120.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定