LogtoClientBuilder
Classstaticnet10.0
Provides methods to configure and add Logto client services to an application builder.
namespace Microsoft.Extensions.Hosting;
public static class LogtoClientBuilder{ // ...}Methods3
Section titled MethodsAddLogtoJwtBearer(AuthenticationBuilder, string, string, string, string?, Action<JwtBearerOptions>)extensionAuthenticationBuilder Configures and adds the Logto JSON Web Token (JWT) Bearer authentication to the specified authentication builder.
AddLogtoJwtBearer(AuthenticationBuilder, string, IEnumerable<string>, string, string?, Action<JwtBearerOptions>)extensionAuthenticationBuilder Configures and adds the Logto JSON Web Token (JWT) Bearer authentication for the specified application.
AddLogtoOIDC(IHostApplicationBuilder, string?, string?, string, string, Action<LogtoOptions>, Action<OpenIdConnectOptions>)extensionIServiceCollection Configures and adds the Logto OpenID Connect (OIDC) authentication for the specified application's service collection.