Table of Contents

Class CloudFoundryTokenKeyResolver

Namespace
Steeltoe.Security.Authentication.CloudFoundry.Wcf
Assembly
Steeltoe.Security.Authentication.CloudFoundryWcf.dll
[Obsolete("This class will be removed in favor of Steeltoe.Security.Authentication.CloudFoundry.CloudFoundryTokenKeyResolver")]
public class CloudFoundryTokenKeyResolver
Inheritance
CloudFoundryTokenKeyResolver
Inherited Members

Constructors

CloudFoundryTokenKeyResolver(CloudFoundryOptions, HttpClient)

public CloudFoundryTokenKeyResolver(CloudFoundryOptions options, HttpClient httpClient = null)

Parameters

options CloudFoundryOptions
httpClient HttpClient

Properties

Options

public CloudFoundryOptions Options { get; protected set; }

Property Value

CloudFoundryOptions

Resolved

public Dictionary<string, SecurityKey> Resolved { get; protected set; }

Property Value

Dictionary<string, SecurityKey>

Methods

FetchKeySet()

Fetch the token keys used by the OAuth server

public virtual Task<JsonWebKeySet> FetchKeySet()

Returns

Task<JsonWebKeySet>

JsonWebKeySet

Exceptions

ArgumentNullException

From the underlying HttpClient.SendAsync call - request is null

InvalidOperationException

From the underlying HttpClient.SendAsync call - request already sent

HttpRequestException

From the underlying HttpClient.SendAsync call - possibly network, DNS or certificate issues

FixupKey(JsonWebKey)

public JsonWebKey FixupKey(JsonWebKey key)

Parameters

key JsonWebKey

Returns

JsonWebKey

GetJsonWebKeySet(string)

public virtual JsonWebKeySet GetJsonWebKeySet(string json)

Parameters

json string

Returns

JsonWebKeySet

ResolveSigningKey(string, SecurityToken, string, TokenValidationParameters)

public virtual IEnumerable<SecurityKey> ResolveSigningKey(string token, SecurityToken securityToken, string kid, TokenValidationParameters validationParameters)

Parameters

token string
securityToken SecurityToken
kid string
validationParameters TokenValidationParameters

Returns

IEnumerable<SecurityKey>