Class AuthenticationBuilderExtensions
Inheritance
Namespace: Steeltoe.Security.Authentication.CloudFoundry
Assembly: Steeltoe.Security.Authentication.CloudFoundryCore.dll
Syntax
public static class AuthenticationBuilderExtensions : object
Methods
| Edit this page View SourceAddCloudFoundryIdentityCertificate(AuthenticationBuilder)
Adds Certificate authentication middleware and configuration to use platform identity certificates
Declaration
public static AuthenticationBuilder AddCloudFoundryIdentityCertificate(this AuthenticationBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
AuthenticationBuilder | builder | Your |
Returns
Type | Description |
---|---|
AuthenticationBuilder |
AddCloudFoundryIdentityCertificate(AuthenticationBuilder, Action<MutualTlsAuthenticationOptions>)
Adds Certificate authentication middleware and configuration to use platform identity certificates
Declaration
public static AuthenticationBuilder AddCloudFoundryIdentityCertificate(this AuthenticationBuilder builder, Action<MutualTlsAuthenticationOptions> configurer)
Parameters
Type | Name | Description |
---|---|---|
AuthenticationBuilder | builder | Your |
Action<MutualTlsAuthenticationOptions> | configurer | Used to configure the options |
Returns
Type | Description |
---|---|
AuthenticationBuilder |
AddCloudFoundryIdentityCertificate(AuthenticationBuilder, String)
Adds Certificate authentication middleware and configuration to use platform identity certificates
Declaration
public static AuthenticationBuilder AddCloudFoundryIdentityCertificate(this AuthenticationBuilder builder, string authenticationScheme)
Parameters
Type | Name | Description |
---|---|---|
AuthenticationBuilder | builder | Your |
System.String | authenticationScheme | An identifier for this authentication mechanism. Default value is |
Returns
Type | Description |
---|---|
AuthenticationBuilder |
AddCloudFoundryIdentityCertificate(AuthenticationBuilder, String, Action<MutualTlsAuthenticationOptions>)
Adds Certificate authentication middleware and configuration to use platform identity certificates
Declaration
public static AuthenticationBuilder AddCloudFoundryIdentityCertificate(this AuthenticationBuilder builder, string authenticationScheme, Action<MutualTlsAuthenticationOptions> configurer)
Parameters
Type | Name | Description |
---|---|---|
AuthenticationBuilder | builder | Your |
System.String | authenticationScheme | An identifier for this authentication mechanism. Default value is |
Action<MutualTlsAuthenticationOptions> | configurer | Used to configure the options |
Returns
Type | Description |
---|---|
AuthenticationBuilder |
AddCloudFoundryJwtBearer(AuthenticationBuilder, IConfiguration)
Adds JWT middleware and configuration for using UAA or Pivotal SSO for bearer token authentication
Declaration
public static AuthenticationBuilder AddCloudFoundryJwtBearer(this AuthenticationBuilder builder, IConfiguration config)
Parameters
Type | Name | Description |
---|---|---|
AuthenticationBuilder | builder | Your |
IConfiguration | config | Your application configuration. Be sure to include the |
Returns
Type | Description |
---|---|
AuthenticationBuilder |
AddCloudFoundryJwtBearer(AuthenticationBuilder, IConfiguration, Action<JwtBearerOptions, IConfiguration>)
Adds JWT middleware and configuration for using UAA or Pivotal SSO for bearer token authentication
Declaration
public static AuthenticationBuilder AddCloudFoundryJwtBearer(this AuthenticationBuilder builder, IConfiguration config, Action<JwtBearerOptions, IConfiguration> configurer)
Parameters
Type | Name | Description |
---|---|---|
AuthenticationBuilder | builder | Your |
IConfiguration | config | Your application configuration. Be sure to include the |
Action<JwtBearerOptions, IConfiguration> | configurer | Used to configure the options |
Returns
Type | Description |
---|---|
AuthenticationBuilder |
AddCloudFoundryJwtBearer(AuthenticationBuilder, String, IConfiguration)
Adds JWT middleware and configuration for using UAA or Pivotal SSO for bearer token authentication
Declaration
public static AuthenticationBuilder AddCloudFoundryJwtBearer(this AuthenticationBuilder builder, string authenticationScheme, IConfiguration config)
Parameters
Type | Name | Description |
---|---|---|
AuthenticationBuilder | builder | Your |
System.String | authenticationScheme | An identifier for this authentication mechanism. Default value is |
IConfiguration | config | Your application configuration. Be sure to include the |
Returns
Type | Description |
---|---|
AuthenticationBuilder |
AddCloudFoundryJwtBearer(AuthenticationBuilder, String, IConfiguration, Action<JwtBearerOptions, IConfiguration>)
Adds JWT middleware and configuration for using UAA or Pivotal SSO for bearer token authentication
Declaration
public static AuthenticationBuilder AddCloudFoundryJwtBearer(this AuthenticationBuilder builder, string authenticationScheme, IConfiguration config, Action<JwtBearerOptions, IConfiguration> configurer)
Parameters
Type | Name | Description |
---|---|---|
AuthenticationBuilder | builder | Your |
System.String | authenticationScheme | An identifier for this authentication mechanism. Default value is |
IConfiguration | config | Your application configuration. Be sure to include the |
Action<JwtBearerOptions, IConfiguration> | configurer | Used to configure the options |
Returns
Type | Description |
---|---|
AuthenticationBuilder |
AddCloudFoundryJwtBearer(AuthenticationBuilder, String, String, IConfiguration)
Adds JWT middleware and configuration for using UAA or Pivotal SSO for bearer token authentication
Declaration
public static AuthenticationBuilder AddCloudFoundryJwtBearer(this AuthenticationBuilder builder, string authenticationScheme, string displayName, IConfiguration config)
Parameters
Type | Name | Description |
---|---|---|
AuthenticationBuilder | builder | Your |
System.String | authenticationScheme | An identifier for this authentication mechanism. Default value is |
System.String | displayName | Sets a display name for this auth scheme. Defaults to |
IConfiguration | config | Your application configuration. Be sure to include the |
Returns
Type | Description |
---|---|
AuthenticationBuilder |
AddCloudFoundryJwtBearer(AuthenticationBuilder, String, String, IConfiguration, Action<JwtBearerOptions, IConfiguration>)
Adds JWT middleware and configuration for using UAA or Pivotal SSO for bearer token authentication
Declaration
public static AuthenticationBuilder AddCloudFoundryJwtBearer(this AuthenticationBuilder builder, string authenticationScheme, string displayName, IConfiguration config, Action<JwtBearerOptions, IConfiguration> configurer)
Parameters
Type | Name | Description |
---|---|---|
AuthenticationBuilder | builder | Your |
System.String | authenticationScheme | An identifier for this authentication mechanism. Default value is |
System.String | displayName | Sets a display name for this auth scheme. Defaults to |
IConfiguration | config | Your application configuration. Be sure to include the |
Action<JwtBearerOptions, IConfiguration> | configurer | Used to configure the options |
Returns
Type | Description |
---|---|
AuthenticationBuilder |
AddCloudFoundryOAuth(AuthenticationBuilder, IConfiguration)
Adds OAuth middleware and configuration for using UAA or Pivotal SSO for user authentication
Declaration
public static AuthenticationBuilder AddCloudFoundryOAuth(this AuthenticationBuilder builder, IConfiguration config)
Parameters
Type | Name | Description |
---|---|---|
AuthenticationBuilder | builder | Your |
IConfiguration | config | Your application configuration. Be sure to include the |
Returns
Type | Description |
---|---|
AuthenticationBuilder |
AddCloudFoundryOAuth(AuthenticationBuilder, IConfiguration, Action<CloudFoundryOAuthOptions, IConfiguration>)
Adds OAuth middleware and configuration for using UAA or Pivotal SSO for user authentication
Declaration
public static AuthenticationBuilder AddCloudFoundryOAuth(this AuthenticationBuilder builder, IConfiguration config, Action<CloudFoundryOAuthOptions, IConfiguration> configurer)
Parameters
Type | Name | Description |
---|---|---|
AuthenticationBuilder | builder | Your |
IConfiguration | config | Your application configuration. Be sure to include the |
Action<CloudFoundryOAuthOptions, IConfiguration> | configurer | Used to configure the options |
Returns
Type | Description |
---|---|
AuthenticationBuilder |
AddCloudFoundryOAuth(AuthenticationBuilder, String, IConfiguration)
Adds OAuth middleware and configuration for using UAA or Pivotal SSO for user authentication
Declaration
public static AuthenticationBuilder AddCloudFoundryOAuth(this AuthenticationBuilder builder, string authenticationScheme, IConfiguration config)
Parameters
Type | Name | Description |
---|---|---|
AuthenticationBuilder | builder | Your |
System.String | authenticationScheme | An identifier for this authentication mechanism. |
IConfiguration | config | Your application configuration. Be sure to include the |
Returns
Type | Description |
---|---|
AuthenticationBuilder |
AddCloudFoundryOAuth(AuthenticationBuilder, String, IConfiguration, Action<CloudFoundryOAuthOptions, IConfiguration>)
Adds OAuth middleware and configuration for using UAA or Pivotal SSO for user authentication
Declaration
public static AuthenticationBuilder AddCloudFoundryOAuth(this AuthenticationBuilder builder, string authenticationScheme, IConfiguration config, Action<CloudFoundryOAuthOptions, IConfiguration> configurer)
Parameters
Type | Name | Description |
---|---|---|
AuthenticationBuilder | builder | Your |
System.String | authenticationScheme | An identifier for this authentication mechanism. Default value is DisplayName |
IConfiguration | config | Your application configuration. Be sure to include the |
Action<CloudFoundryOAuthOptions, IConfiguration> | configurer | Used to configure the options |
Returns
Type | Description |
---|---|
AuthenticationBuilder |
AddCloudFoundryOAuth(AuthenticationBuilder, String, String, IConfiguration)
Adds OAuth middleware and configuration for using UAA or Pivotal SSO for user authentication
Declaration
public static AuthenticationBuilder AddCloudFoundryOAuth(this AuthenticationBuilder builder, string authenticationScheme, string displayName, IConfiguration config)
Parameters
Type | Name | Description |
---|---|---|
AuthenticationBuilder | builder | Your |
System.String | authenticationScheme | An identifier for this authentication mechanism. |
System.String | displayName | Sets a display name for this auth scheme. Defaults to DisplayName |
IConfiguration | config | Your application configuration. Be sure to include the |
Returns
Type | Description |
---|---|
AuthenticationBuilder |
AddCloudFoundryOAuth(AuthenticationBuilder, String, String, IConfiguration, Action<CloudFoundryOAuthOptions, IConfiguration>)
Adds OAuth middleware and configuration for using UAA or Pivotal SSO for user authentication
Declaration
public static AuthenticationBuilder AddCloudFoundryOAuth(this AuthenticationBuilder builder, string authenticationScheme, string displayName, IConfiguration config, Action<CloudFoundryOAuthOptions, IConfiguration> configurer)
Parameters
Type | Name | Description |
---|---|---|
AuthenticationBuilder | builder | Your |
System.String | authenticationScheme | An identifier for this authentication mechanism. Default value is DisplayName |
System.String | displayName | Sets a display name for this auth scheme. Defaults to DisplayName |
IConfiguration | config | Your application configuration. Be sure to include the |
Action<CloudFoundryOAuthOptions, IConfiguration> | configurer | Used to configure the options |
Returns
Type | Description |
---|---|
AuthenticationBuilder |
AddCloudFoundryOpenIdConnect(AuthenticationBuilder, IConfiguration)
Adds OpenID Connect middleware and configuration for using UAA or Pivotal SSO for user authentication
Declaration
public static AuthenticationBuilder AddCloudFoundryOpenIdConnect(this AuthenticationBuilder builder, IConfiguration config)
Parameters
Type | Name | Description |
---|---|---|
AuthenticationBuilder | builder | Your |
IConfiguration | config | Your application configuration. Be sure to include the |
Returns
Type | Description |
---|---|
AuthenticationBuilder |
AddCloudFoundryOpenIdConnect(AuthenticationBuilder, IConfiguration, Action<OpenIdConnectOptions, IConfiguration>)
Adds OpenID Connect middleware and configuration for using UAA or Pivotal SSO for user authentication
Declaration
public static AuthenticationBuilder AddCloudFoundryOpenIdConnect(this AuthenticationBuilder builder, IConfiguration config, Action<OpenIdConnectOptions, IConfiguration> configurer)
Parameters
Type | Name | Description |
---|---|---|
AuthenticationBuilder | builder | Your |
IConfiguration | config | Your application configuration. Be sure to include the |
Action<OpenIdConnectOptions, IConfiguration> | configurer | Configure the |
Returns
Type | Description |
---|---|
AuthenticationBuilder |
AddCloudFoundryOpenIdConnect(AuthenticationBuilder, String, IConfiguration)
Adds OpenID Connect middleware and configuration for using UAA or Pivotal SSO for user authentication
Declaration
public static AuthenticationBuilder AddCloudFoundryOpenIdConnect(this AuthenticationBuilder builder, string authenticationScheme, IConfiguration config)
Parameters
Type | Name | Description |
---|---|---|
AuthenticationBuilder | builder | Your |
System.String | authenticationScheme | An identifier for this authentication mechanism. Default value is DisplayName |
IConfiguration | config | Your application configuration. Be sure to include the |
Returns
Type | Description |
---|---|
AuthenticationBuilder |
AddCloudFoundryOpenIdConnect(AuthenticationBuilder, String, IConfiguration, Action<OpenIdConnectOptions, IConfiguration>)
Adds OpenID Connect middleware and configuration for using UAA or Pivotal SSO for user authentication
Declaration
public static AuthenticationBuilder AddCloudFoundryOpenIdConnect(this AuthenticationBuilder builder, string authenticationScheme, IConfiguration config, Action<OpenIdConnectOptions, IConfiguration> configurer)
Parameters
Type | Name | Description |
---|---|---|
AuthenticationBuilder | builder | Your |
System.String | authenticationScheme | An identifier for this authentication mechanism. Default value is DisplayName |
IConfiguration | config | (Optional) Your application configuration. Be sure to include the |
Action<OpenIdConnectOptions, IConfiguration> | configurer | Configure the |
Returns
Type | Description |
---|---|
AuthenticationBuilder |
AddCloudFoundryOpenIdConnect(AuthenticationBuilder, String, String, IConfiguration)
Adds OpenID Connect middleware and configuration for using UAA or Pivotal SSO for user authentication
Declaration
public static AuthenticationBuilder AddCloudFoundryOpenIdConnect(this AuthenticationBuilder builder, string authenticationScheme, string displayName, IConfiguration config)
Parameters
Type | Name | Description |
---|---|---|
AuthenticationBuilder | builder | Your |
System.String | authenticationScheme | An identifier for this authentication mechanism. Default value is DisplayName |
System.String | displayName | Sets a display name for this auth scheme. Defaults to DisplayName |
IConfiguration | config | Your application configuration. Be sure to include the |
Returns
Type | Description |
---|---|
AuthenticationBuilder |
AddCloudFoundryOpenIdConnect(AuthenticationBuilder, String, String, IConfiguration, Action<OpenIdConnectOptions, IConfiguration>)
Adds OpenID Connect middleware and configuration for using UAA or Pivotal SSO for user authentication
Declaration
public static AuthenticationBuilder AddCloudFoundryOpenIdConnect(this AuthenticationBuilder builder, string authenticationScheme, string displayName, IConfiguration config, Action<OpenIdConnectOptions, IConfiguration> configurer)
Parameters
Type | Name | Description |
---|---|---|
AuthenticationBuilder | builder | Your |
System.String | authenticationScheme | An identifier for this authentication mechanism. Default value is DisplayName |
System.String | displayName | Sets a display name for this auth scheme. Defaults to DisplayName |
IConfiguration | config | Your application configuration. Be sure to include the |
Action<OpenIdConnectOptions, IConfiguration> | configurer | Configure the |
Returns
Type | Description |
---|---|
AuthenticationBuilder |