gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-05 04:53:13 29 4
gpt4 key购买 nike

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

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

你知道正确的方法吗?

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

谢谢

最佳答案

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

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

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

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

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

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

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

29 4 0
文章推荐: python - tqdm 不计算 jupyter notebook 中的迭代次数
文章推荐: javascript - 如何使用纯 JavaScript 读取文本文件的内容并将其写入
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com