How to synchronize Microsoft users from Azure into the Keycloak

橙三吉。 提交于 2021-02-18 19:16:11

问题


We are trying to figure out a way to synchronize users from Azure Account into the Keycloak?

Unfortunately, we could not find a documentation for it

Do you know a proper way to do it ?

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

Thank you


回答1:


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

For that you can use Keycloak's User Federation functionality:

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. (..)

In that section of the documentation you have all that you need. Nonetheless, to add the User Federation:

  • Go to your Realm;
  • Select User Federation;
  • Add provider -> ldap;
  • Configure all the Required Settings accordingly;
  • Save.


来源:https://stackoverflow.com/questions/66151538/how-to-synchronize-microsoft-users-from-azure-into-the-keycloak

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!