Table of Contents

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 IServiceCollection

Service 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 IServiceCollection

Service collection

configuration IConfiguration

Application 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 IServiceCollection

Service 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 IServiceCollection

Service collection

authenticationScheme string

An 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 IServiceCollection

Service collection

authenticationScheme string

An 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 IServiceCollection

Service 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 IServiceCollection

Service collection

configuration IConfiguration

Application Configuration