我正在努力弄清楚如何为以下流程实施自定义策略:
User lands on the login page and that login page only contains an email input.
User enters email address and clicks continue
if user has already registered
Redirected to their selected login provider (Google, Microsoft Account or Local Account)
if user has not registered before
Check google provider if a user account exists for that email address
if Google account exists
Redirect to Google login
Check Microsoft provider if a user account exists for that email address
if Microsoft account exists
Redirect to Microsoft login
else
Redirect to registration screen
User completes registration screen
User is automatically logged in
The user
我调查了这是否真的可以做到,并且我发现了一个“用于视觉协作的数字工作空间”(aka Mural.co),它实际上实现了类似的流程,所以这必须是可能的。请参阅下面的图片。
但是,我无法找到关于
- 如何向社交提供者查询帐户是否存在
- 如何在 Azure AD B2C 自定义策略中创建这种复杂类型的流。
任何指向正确方向的指针将不胜感激