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
CloudFoundryOptionshttpClient
HttpClient
Properties
Options
public CloudFoundryOptions Options { get; protected set; }
Property Value
Resolved
public Dictionary<string, SecurityKey> Resolved { get; protected set; }
Property Value
Methods
FetchKeySet()
Fetch the token keys used by the OAuth server
public virtual Task<JsonWebKeySet> FetchKeySet()
Returns
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
GetJsonWebKeySet(string)
public virtual JsonWebKeySet GetJsonWebKeySet(string json)
Parameters
json
string
Returns
ResolveSigningKey(string, SecurityToken, string, TokenValidationParameters)
public virtual IEnumerable<SecurityKey> ResolveSigningKey(string token, SecurityToken securityToken, string kid, TokenValidationParameters validationParameters)
Parameters
token
stringsecurityToken
SecurityTokenkid
stringvalidationParameters
TokenValidationParameters