Class ServiceCollectionExtensions
- Namespace
- Steeltoe.Security.Authentication.CloudFoundry
- Assembly
- Steeltoe.Security.Authentication.CloudFoundryCore.dll
public static class ServiceCollectionExtensions
- Inheritance
-
ServiceCollectionExtensions
- Inherited Members
Methods
AddCloudFoundryCertificateAuth(IServiceCollection)
Adds options and services for Cloud Foundry container identity certificates along with certificate-based authentication and authorization
public static void AddCloudFoundryCertificateAuth(this IServiceCollection services)
Parameters
services
IServiceCollectionService collection
AddCloudFoundryCertificateAuth(IServiceCollection, IConfiguration)
Adds options and services for Cloud Foundry container identity certificates along with certificate-based authentication and authorization
[Obsolete("The IConfiguration parameter is not used")]
public static void AddCloudFoundryCertificateAuth(this IServiceCollection services, IConfiguration configuration)
Parameters
services
IServiceCollectionService collection
configuration
IConfigurationApplication Configuration
AddCloudFoundryCertificateAuth(IServiceCollection, Action<MutualTlsAuthenticationOptions>)
Adds options and services for Cloud Foundry container identity certificates along with certificate-based authentication and authorization
public static void AddCloudFoundryCertificateAuth(this IServiceCollection services, Action<MutualTlsAuthenticationOptions> configurer)
Parameters
services
IServiceCollectionService collection
configurer
Action<MutualTlsAuthenticationOptions>Used to configure the MutualTlsAuthenticationOptions
AddCloudFoundryCertificateAuth(IServiceCollection, string)
Adds options and services for Cloud Foundry container identity certificates along with certificate-based authentication and authorization
public static void AddCloudFoundryCertificateAuth(this IServiceCollection services, string authenticationScheme)
Parameters
services
IServiceCollectionService collection
authenticationScheme
stringAn identifier for this authentication mechanism. Default value is AuthenticationScheme
AddCloudFoundryCertificateAuth(IServiceCollection, string, Action<MutualTlsAuthenticationOptions>)
Adds options and services for Cloud Foundry container identity certificates along with certificate-based authentication and authorization
public static void AddCloudFoundryCertificateAuth(this IServiceCollection services, string authenticationScheme, Action<MutualTlsAuthenticationOptions> configurer)
Parameters
services
IServiceCollectionService collection
authenticationScheme
stringAn identifier for this authentication mechanism. Default value is AuthenticationScheme
configurer
Action<MutualTlsAuthenticationOptions>Used to configure the MutualTlsAuthenticationOptions
AddCloudFoundryContainerIdentity(IServiceCollection)
Adds options and services to use Cloud Foundry container identity certificates
public static void AddCloudFoundryContainerIdentity(this IServiceCollection services)
Parameters
services
IServiceCollectionService collection
AddCloudFoundryContainerIdentity(IServiceCollection, IConfiguration)
Adds options and services to use Cloud Foundry container identity certificates
[Obsolete("The IConfiguration parameter is not used")]
public static void AddCloudFoundryContainerIdentity(this IServiceCollection services, IConfiguration configuration)
Parameters
services
IServiceCollectionService collection
configuration
IConfigurationApplication Configuration