# LogtoClientBuilder

- Kind: `class`
- Package: [CommunityToolkit.Aspire.Logto.Client](/reference/api/csharp/communitytoolkit.aspire.logto.client.md)
- Version: `13.4.1-beta.706`
- Namespace: `Microsoft.Extensions.Hosting`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d479e13473b1d29d06b974f144a0049289a3cb5c/src/CommunityToolkit.Aspire.Logto.Client/LogtoClientBuilder.cs)

Provides methods to configure and add Logto client services to an application builder.

## Definition

```csharp
namespace Microsoft.Extensions.Hosting;

public static class LogtoClientBuilder
{
    // ...
}
```

## Methods

- [AddLogtoJwtBearer(AuthenticationBuilder, string, string, string, string?, Action<JwtBearerOptions>)](/reference/api/csharp/communitytoolkit.aspire.logto.client/logtoclientbuilder/methods.md#addlogtojwtbearer-authenticationbuilder-string-string-string-string-action-jwtbeareroptions) : `AuthenticationBuilder` `extension` -- 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>)](/reference/api/csharp/communitytoolkit.aspire.logto.client/logtoclientbuilder/methods.md#addlogtojwtbearer-authenticationbuilder-string-ienumerable-string-string-string-action-jwtbeareroptions) : `AuthenticationBuilder` `extension` -- 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>)](/reference/api/csharp/communitytoolkit.aspire.logto.client/logtoclientbuilder/methods.md#addlogtooidc-ihostapplicationbuilder-string-string-string-string-action-logtooptions-action-openidconnectoptions) : `IServiceCollection` `extension` -- Configures and adds the Logto OpenID Connect (OIDC) authentication for the specified application's service collection.
