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

MiddleTierAuthenticationBuilderExtensions.UsePasswordAuthentication(IMiddleTierAuthenticationBuilder, Action<MiddleTierPasswordAuthenticationOptions>) Method

Enables standard authentication (with a login and password) in the Middle Tier application server.

Namespace: DevExpress.ExpressApp.Win.ApplicationBuilder

Assembly: DevExpress.ExpressApp.Win.v24.1.dll

NuGet Packages: DevExpress.ExpressApp.Win, DevExpress.ExpressApp.Win.Design

Declaration

public static IMiddleTierAuthenticationBuilder UsePasswordAuthentication(
    this IMiddleTierAuthenticationBuilder builder,
    Action<MiddleTierPasswordAuthenticationOptions> configureOptions = null
)

Parameters

Name Type Description
builder IMiddleTierAuthenticationBuilder

Allows you to enable and configure the Security System in your application, and chain further configuration.

Optional Parameters

Name Type Default Description
configureOptions Action<DevExpress.ExpressApp.Win.ApplicationBuilder.MiddleTierPasswordAuthenticationOptions> null

For internal use. Do not specify these settings in your application.

Returns

Type
IMiddleTierAuthenticationBuilder

Remarks

The following example demonstrates how to use this method:

File: MySolution.Win\Startup.cs.

using DevExpress.ExpressApp.ApplicationBuilder;
using DevExpress.ExpressApp.Win.ApplicationBuilder;
// ...
public class ApplicationBuilder : IDesignTimeApplicationFactory {
    public static WinApplication BuildApplication(string connectionString) {
        var builder = WinApplication.CreateBuilder();
        builder.UseApplication<MySolutionWindowsFormsApplication>();
        // ...
        builder.Security
            .UseMiddleTierMode(options => {
                // ...
            })
            .UsePasswordAuthentication();
        // ...
    }
    // ...
}
See Also