问题
I have a on-premises database, and I need to use Azure AD B2C. AD B2C needs to use data from the on-premises database.
So one way to implmenent it is to create a new Azure AD from the on-premises database.
The question is that how should I go about creating a new Azure AD and import database schema into the new Azure AD, and populate user data?
Is my thinking above correct?
Update
When setup, we migrate data first, then after migration, we need a sync job to sync the data maybe once every few hours (not sure the interval yet).
回答1:
You could setup a Rest API that can CRUD data in your on-premise database. Using a custom policy, you can call into that Rest API:
- to validate user input,
- to obtain additional claims, and
- use migration can also use the Rest API if the on-premise DB has user data and you want to migrate it to Azure AD B2C.
来源:https://stackoverflow.com/questions/54520702/create-azure-ative-directory-database-schema-and-populate-user-data