Class ServiceCollectionExtensions
Inheritance
Namespace: Steeltoe.Security.Authentication.CloudFoundry
Assembly: Steeltoe.Security.Authentication.CloudFoundryCore.dll
Syntax
public static class ServiceCollectionExtensions : object
Methods
| Edit this page View SourceAddCloudFoundryCertificateAuth(IServiceCollection)
Adds options and services for Cloud Foundry container identity certificates along with certificate-based authentication and authorization
Declaration
public static void AddCloudFoundryCertificateAuth(this IServiceCollection services)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | Service collection |
AddCloudFoundryCertificateAuth(IServiceCollection, Action<MutualTlsAuthenticationOptions>)
Adds options and services for Cloud Foundry container identity certificates along with certificate-based authentication and authorization
Declaration
public static void AddCloudFoundryCertificateAuth(this IServiceCollection services, Action<MutualTlsAuthenticationOptions> configurer)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | Service collection |
Action<MutualTlsAuthenticationOptions> | configurer | Used to configure the MutualTlsAuthenticationOptions |
AddCloudFoundryCertificateAuth(IServiceCollection, IConfiguration)
Adds options and services for Cloud Foundry container identity certificates along with certificate-based authentication and authorization
Declaration
public static void AddCloudFoundryCertificateAuth(this IServiceCollection services, IConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | Service collection |
IConfiguration | configuration | Application Configuration |
AddCloudFoundryCertificateAuth(IServiceCollection, String)
Adds options and services for Cloud Foundry container identity certificates along with certificate-based authentication and authorization
Declaration
public static void AddCloudFoundryCertificateAuth(this IServiceCollection services, string authenticationScheme)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | Service collection |
System.String | authenticationScheme | An identifier for this authentication mechanism. Default value is |
AddCloudFoundryCertificateAuth(IServiceCollection, String, Action<MutualTlsAuthenticationOptions>)
Adds options and services for Cloud Foundry container identity certificates along with certificate-based authentication and authorization
Declaration
public static void AddCloudFoundryCertificateAuth(this IServiceCollection services, string authenticationScheme, Action<MutualTlsAuthenticationOptions> configurer)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | Service collection |
System.String | authenticationScheme | An identifier for this authentication mechanism. Default value is |
Action<MutualTlsAuthenticationOptions> | configurer | Used to configure the MutualTlsAuthenticationOptions |
AddCloudFoundryContainerIdentity(IServiceCollection)
Adds options and services to use Cloud Foundry container identity certificates
Declaration
public static void AddCloudFoundryContainerIdentity(this IServiceCollection services)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | Service collection |
AddCloudFoundryContainerIdentity(IServiceCollection, IConfiguration)
Adds options and services to use Cloud Foundry container identity certificates
Declaration
public static void AddCloudFoundryContainerIdentity(this IServiceCollection services, IConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | Service collection |
IConfiguration | configuration | Application Configuration |