Table of Contents

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)

public static ServiceHost AddJwtAuthorization(this ServiceHost serviceHost, IConfiguration configuration, LoggerFactory loggerFactory = null)

Parameters

serviceHost ServiceHost

Your service to be secured with JWT Auth

configuration IConfiguration

Your application configuration, including VCAP_SERVICES

loggerFactory LoggerFactory

For logging within the library

Returns

ServiceHost

Your service

AddJwtAuthorization(ServiceHost, IConfiguration, HttpClient, LoggerFactory)

[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 ServiceHost

Your service to be secured with JWT Auth

configuration IConfiguration

Your application configuration, including VCAP_SERVICES

httpClient HttpClient

Provide your own http client for interacting with the security server

loggerFactory LoggerFactory

For logging within the library

Returns

ServiceHost

Your service