gpt4 book ai didi

asp.net-core - 如何更改 Blazor WASM 身份网络核心 3.1 消息 "You are logged out"、 "checking login state"和 "authorizing"?

转载 作者:行者123 更新时间:2023-12-04 01:12:32 24 4
gpt4 key购买 nike

我需要知道如何个性化和/或更改此消息的语言,我想这与 IdentityServer4 有关。
有任何想法吗?

最佳答案

您正在寻找的是 RemoteAuthenticatorView
您可以在 official documentation 中找到有关答案的更多详细信息。

@page "/security/{action}"
@using Microsoft.AspNetCore.Components.WebAssembly.Authentication

<RemoteAuthenticatorView Action="@Action">
@*authentication/login*
<LoggingIn></LoggingIn>
@*authentication/login-callback*
<CompletingLoggingIn></CompletingLoggingIn>
@*authentication/login-failed*
<LogInFailed></LogInFailed>
@*authentication/logout*
<LogOut></LogOut>
@*authentication/logout-callback*
<CompletingLogOut></CompletingLogOut>
@*authentication/logout-failed*
<LogOutFailed></LogOutFailed>
@*authentication/logged-out*
<LogOutSucceeded></LogOutSucceeded>
@*authentication/profile*
<UserProfile></UserProfile>
@*authentication/register*
<Registering></Registering>
</RemoteAuthenticatorView>

@code{
[Parameter]
public string Action { get; set; }
}

关于asp.net-core - 如何更改 Blazor WASM 身份网络核心 3.1 消息 "You are logged out"、 "checking login state"和 "authorizing"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64381812/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com