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
serviceHost
ServiceHostYour service to be secured with JWT Auth
configuration
IConfigurationYour application configuration, including VCAP_SERVICES
loggerFactory
LoggerFactoryFor 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
serviceHost
ServiceHostYour service to be secured with JWT Auth
configuration
IConfigurationYour application configuration, including VCAP_SERVICES
httpClient
HttpClientProvide your own http client for interacting with the security server
loggerFactory
LoggerFactoryFor logging within the library
Returns
- ServiceHost
Your service