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 Method

    Name Parameters Description
    UseTokenAuthentication(String, Func<String>) schemeName, accessTokenProvider Configures the client to use a custom authentication based on the specified authentication scheme name and a JSON web token (JWT) identified through a delegate.
    UseTokenAuthentication(String, Func<Task<String>>) schemeName, accessTokenProviderAsync Configures the client to use a custom authentication based on the specified authentication scheme name and a JSON web token (JWT) identified through an async delegate.
    UseTokenAuthentication(String, String) schemeName, accessToken Configures the client to use a custom authentication based on the specified JSON web token (JWT) and authentication scheme name.