Skip to main content
All docs
V25.1
  • .NET 8.0+
    • The page you are viewing does not exist in the .NET Framework 4.6.2+ platform documentation. This link will take you to the parent topic of the current section.

    MiddleTierClientBuilder<TDbContext>.UseTokenAuthentication(String, String) Method

    Configures the client to use a custom authentication based on the specified JSON web token (JWT) and authentication scheme name.

    Namespace: DevExpress.ExpressApp.ApplicationBuilder

    Assembly: DevExpress.EntityFrameworkCore.Security.v25.1.dll

    NuGet Package: DevExpress.ExpressApp.EFCore

    Declaration

    public MiddleTierClientBuilder<TDbContext> UseTokenAuthentication(
        string schemeName,
        string accessToken
    )

    Parameters

    Name Type Description
    schemeName String

    The name of the authentication scheme.

    accessToken String

    The JSON web token (JWT).

    Returns

    Type Description
    MiddleTierClientBuilder<TDbContext>

    The builder that allows you to further configure the Middle Tier client.

    Remarks

    You can use this method for OAuth, Microsoft Entra ID (Azure AD), and other types of authentication.

    See Also