只有登录和注销流程适用于 Azure Active Directory B2C

Alm*_*mis 5 c# azure azure-ad-b2c asp.net-core blazor

我按照 Microsoft 的官方指南使用 Azure Active Directory B2C设置ASP.NET Core Blazor WebAssembly 独立应用程序,应用程序运行良好,登录打开一个新窗口,要求提供凭据并注销刷新页面并将我注销。我检查了代码,似乎为了进行登录或注销,您只需要在

@page "/authentication/{action}"
@using Microsoft.AspNetCore.Components.WebAssembly.Authentication
<RemoteAuthenticatorView Action="@Action" />

@code{
    [Parameter] public string Action { get; set; }
}
Run Code Online (Sandbox Code Playgroud)

并基于Microsoft docs可用的路线是

+--------------------------------+----------------------------------------------------------------------------+
|             Route              |                                  Purpose                                   |
+--------------------------------+----------------------------------------------------------------------------+
| authentication/login           | Triggers a sign-in operation.                                              |
| authentication/login-callback  | Handles the result of any sign-in operation.                               |
| authentication/login-failed    | Displays error messages when the sign-in operation fails for some reason.  |
| authentication/logout          | Triggers a sign-out operation.                                             |
| authentication/logout-callback | Handles the result of a sign-out operation.                                |
| authentication/logout-failed   | Displays error messages when the sign-out operation fails for some reason. |
| authentication/logged-out      | Indicates that the user has successfully logout.                           |
| authentication/profile         | Triggers an operation to edit the user profile.                            |
| authentication/register        | Triggers an operation to register a new user.                              |
+--------------------------------+----------------------------------------------------------------------------+
Run Code Online (Sandbox Code Playgroud)

所以我尝试使用 actions profileregister

  • 个人资料显示我Editing the profile is not supported.消息
  • register使用?returnUrl=%2Fauthentication%2Flogin查询参数将我重定向回主页

我想同时注册和更新个人资料。