azure - 如何将 Microsoft 用户从 Azure 同步到 Keycloak

标签 azure azure-active-directory keycloak keycloak-services

我们正在尝试找出一种将用户从 Azure 帐户同步到 Keycloak 的方法?

不幸的是,我们找不到它的文档

你知道正确的方法吗?

我想使用 Azure 作为外部数据库,用于对用户进行身份验证。

谢谢

最佳答案

I want to use Azure as an external DB that I can use to authenticate my users

为此,您可以使用 Keycloak's User Federation功能:

Many companies have existing user databases that hold information about users and their passwords or other credentials. In many cases, it is just not possible to migrate off of those existing stores to a pure Keycloak deployment. Keycloak can federate existing external user databases. By default, we support LDAP and Active Directory, but you can also code your own extension for any custom user database using our User Storage SPI.

The way it works is that when a user logs in, Keycloak will look into its own internal user store to find the user. If it cannot find it there, it will iterate over every User Storage provider you have configured for the realm until it finds a match. Data from the external store is mapped into a common user model that is consumed by the Keycloak runtime. (..)

在文档的该部分中,您拥有所需的一切。尽管如此,要添加用户联合:

  • 前往你的领域;
  • 选择用户联盟;
  • 添加提供商 -> ldap;
  • 相应地配置所有必需的设置;
  • 保存。

关于azure - 如何将 Microsoft 用户从 Azure 同步到 Keycloak,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66151538/

相关文章:

每个环境的 Azure 数据工厂动态内容默认值

java - Azure Cosmos Mongo API 版本 3.6,但无法连接 mongo.cosmos.azure.com :443

Azure 监视器 REST API 抛出无效 token 错误

azure - 如果选中“读取目录数据”选项会做什么?

Flutter appauth 参数无效 : redirect_uri

azure - 为什么需要这么长时间才能通过第一级重试?

azure - 步骤引用版本 1.152.1 的 InvokeRESTAPI 任务,该任务对于给定作业目标无效

java - Azure AD 从 .auth/me 获取 Java JSP API 中当前登录的用户

heap-memory - 如何在独立配置中通过 CLI 更改 keycloak jvm 参数

certificate - 如何将证书(crt文件)导入keycloak?