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
CloudFoundryOptionslogger
ILogger<CloudFoundryTokenValidator>
Properties
Options
public CloudFoundryOptions Options { get; protected set; }
Property Value
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
stringFalls back to value of message if null or empty
message
stringUses value "invalid_token" if not provided
ValidateToken(string)
public virtual ClaimsPrincipal ValidateToken(string token)
Parameters
token
string