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
appBuilderIAppBuilderYour OWIN AppBuilder
configurationIConfigurationYour application configuration
authenticationTypestringThe identifier for this authentication type. MUST match the value used in your authentication challenge.
loggerFactoryLoggerFactoryFor logging with SSO interactions
Returns
- IAppBuilder
Your Owin.IAppBuilder