Table of Contents

Class CloudFoundryExtensions

Namespace
Steeltoe.Security.Authentication.CloudFoundry.Owin
Assembly
Steeltoe.Security.Authentication.CloudFoundryOwin.dll
public static class CloudFoundryExtensions
Inheritance
CloudFoundryExtensions
Inherited Members

Methods

UseCloudFoundryOpenIdConnect(IAppBuilder, IConfiguration, string, LoggerFactory)

Configures and adds <xref href="Steeltoe.Security.Authentication.CloudFoundry.Owin.OpenIdConnectAuthenticationMiddleware" data-throw-if-not-resolved="false"></xref> to the OWIN request pipeline 

Also adds a middleware to make use of X-Forwarded-Proto to maintain HTTPS redirects when operating behind a reverse proxy
public static IAppBuilder UseCloudFoundryOpenIdConnect(this IAppBuilder appBuilder, IConfiguration configuration, string authenticationType = "CloudFoundry", LoggerFactory loggerFactory = null)

Parameters

appBuilder IAppBuilder

Your OWIN AppBuilder

configuration IConfiguration

Your application configuration

authenticationType string

The identifier for this authentication type. MUST match the value used in your authentication challenge.

loggerFactory LoggerFactory

For logging with SSO interactions

Returns

IAppBuilder

Your Owin.IAppBuilder