Class AuthenticationServices
Provides methods for configuring AMI authentication in DI environment.
Inherited Members
Namespace: DotNext.Maintenance.CommandLine.Authentication
Assembly: DotNext.MaintenanceServices.dll
Syntax
public static class AuthenticationServices
Methods
| Edit this page View SourceUseApplicationMaintenanceInterfaceAuthentication<T>(IServiceCollection)
Enables authentication of the specified type required to execute commands over AMI.
Declaration
public static IServiceCollection UseApplicationMaintenanceInterfaceAuthentication<T>(this IServiceCollection services) where T : class, IAuthenticationHandler
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceCollection | services | A registry of services. |
Returns
| Type | Description |
|---|---|
| IServiceCollection | A modified registry of services. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the authentication. |