Class CloudFoundryExtensions
- Namespace
- Steeltoe.Security.Authentication.CloudFoundry.Wcf
- Assembly
- Steeltoe.Security.Authentication.CloudFoundryWcf.dll
public static class CloudFoundryExtensions
- Inheritance
-
CloudFoundryExtensions
- Inherited Members
Methods
AddJwtAuthorization(ServiceHost, IConfiguration, LoggerFactory)
Adds the JwtAuthorizationManager to a ServiceHost
public static ServiceHost AddJwtAuthorization(this ServiceHost serviceHost, IConfiguration configuration, LoggerFactory loggerFactory = null)
Parameters
serviceHostServiceHostYour service to be secured with JWT Auth
configurationIConfigurationYour application configuration, including VCAP_SERVICES
loggerFactoryLoggerFactoryFor logging within the library
Returns
- ServiceHost
Your service
AddJwtAuthorization(ServiceHost, IConfiguration, HttpClient, LoggerFactory)
Adds the JwtAuthorizationManager to a ServiceHost
[Obsolete("The httpClient parameter has never actually been used, please remove it")]
public static ServiceHost AddJwtAuthorization(this ServiceHost serviceHost, IConfiguration configuration, HttpClient httpClient = null, LoggerFactory loggerFactory = null)
Parameters
serviceHostServiceHostYour service to be secured with JWT Auth
configurationIConfigurationYour application configuration, including VCAP_SERVICES
httpClientHttpClientProvide your own http client for interacting with the security server
loggerFactoryLoggerFactoryFor logging within the library
Returns
- ServiceHost
Your service