Table of Contents

Class CloudFoundryWcfTokenValidator

Namespace
Steeltoe.Security.Authentication.CloudFoundry.Wcf
Assembly
Steeltoe.Security.Authentication.CloudFoundryWcf.dll
public class CloudFoundryWcfTokenValidator : CloudFoundryTokenValidator
Inheritance
CloudFoundryWcfTokenValidator
Inherited Members

Constructors

CloudFoundryWcfTokenValidator(CloudFoundryOptions, ILogger<CloudFoundryTokenValidator>)

public CloudFoundryWcfTokenValidator(CloudFoundryOptions options, ILogger<CloudFoundryTokenValidator> logger = null)

Parameters

options CloudFoundryOptions
logger ILogger<CloudFoundryTokenValidator>

Properties

Options

public CloudFoundryOptions Options { get; protected set; }

Property Value

CloudFoundryOptions

Methods

ThrowJwtException(string, string)

Throws a WebFaultException with HTTP 401. exceptionMessage used for Detail if provided, else uses message

Sets WWW-Authenticate value = 'Bearer realm="default",error="{message}",error_description="{exceptionMessage}'"
public static void ThrowJwtException(string exceptionMessage, string message)

Parameters

exceptionMessage string

Falls back to value of message if null or empty

message string

Uses value "invalid_token" if not provided

ValidateToken(string)

public virtual ClaimsPrincipal ValidateToken(string token)

Parameters

token string

Returns

ClaimsPrincipal