Table of Contents

Class CloudFoundryHelper

Namespace
Steeltoe.Security.Authentication.CloudFoundry
Assembly
Steeltoe.Security.Authentication.CloudFoundryBase.dll
public static class CloudFoundryHelper
Inheritance
CloudFoundryHelper
Inherited Members

Methods

GetBackChannelHandler(bool)

public static HttpMessageHandler GetBackChannelHandler(bool validateCertificates)

Parameters

validateCertificates bool

Returns

HttpMessageHandler

GetExpTime(JObject)

Retrieves expiration time property (exp) in a Newtonsoft.Json.Linq.JObject

public static DateTime GetExpTime(JObject payload)

Parameters

payload JObject

Contents of a JWT

Returns

DateTime

The DateTime representation of a token's expiration

GetIssueTime(JObject)

Retrieves the time at which a token was issued

public static DateTime GetIssueTime(JObject payload)

Parameters

payload JObject

Contents of a JWT

Returns

DateTime

The DateTime representation of a token's issued-at time

GetScopes(JObject)

public static List<string> GetScopes(JObject user)

Parameters

user JObject

Returns

List<string>

GetTokenValidationParameters(TokenValidationParameters, string, HttpMessageHandler, bool, AuthServerOptions)

public static TokenValidationParameters GetTokenValidationParameters(TokenValidationParameters parameters, string keyUrl, HttpMessageHandler handler, bool validateCertificates, AuthServerOptions options = null)

Parameters

parameters TokenValidationParameters
keyUrl string
handler HttpMessageHandler
validateCertificates bool
options AuthServerOptions

Returns

TokenValidationParameters