[英]Signup with Azure AD B2C using phone number
In my mobile application I will be just using phone number for anthentication.在我的移动应用程序中,我将只使用电话号码进行验证。 Right now I am trying this with Postman which works, which means the user is created, but a code is not sent to the user.
现在我正在尝试使用 Postman 进行此操作,这意味着已创建用户,但不会向用户发送代码。 I want the user to receive a code when signing up and signing in. I wont be using user flows as I wish to use a custom sign up page for my app.
我希望用户在注册和登录时收到代码。我不会使用用户流程,因为我希望为我的应用程序使用自定义注册页面。 I tested it with user flows and was able to get a code on my mobile device.
我使用用户流程对其进行了测试,并能够在我的移动设备上获取代码。
Here is my Postman POST request to https://graph.microsoft.com/v1.0/users这是我的 Postman POST 请求到https://graph.microsoft.com/v1.0/users
{
"accountEnabled": true,
"displayName": "Test Name",
"identities": [
{
"signInType": "phoneNumber",
"issuer": "testorg.onmicrosoft.com",
"issuerAssignedId": "+1 416-000-0000"
}
],
"mobilePhone": "+1 416 000 000",
"passwordPolicies": "DisablePasswordExpiration",
"passwordProfile": {
"password": "82510f31-1c89-d103-73c8-9fbedda45dcc",
"forceChangePasswordNextSignIn": false
}
}
Please advise!请指教!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.