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
GetExpTime(JsonElement)
Retrieves expiration time property (exp) in a JsonDocument
public static DateTime GetExpTime(JsonElement payload)
Parameters
payload
JsonElementContents of a JWT
Returns
GetIssueTime(JsonElement)
Retrieves the time at which a token was issued
public static DateTime GetIssueTime(JsonElement payload)
Parameters
payload
JsonElementContents of a JWT
Returns
GetScopes(JsonElement)
public static List<string> GetScopes(JsonElement user)
Parameters
user
JsonElement
Returns
GetTokenValidationParameters(TokenValidationParameters, string, HttpMessageHandler, bool, AuthServerOptions)
public static TokenValidationParameters GetTokenValidationParameters(TokenValidationParameters parameters, string keyUrl, HttpMessageHandler handler, bool validateCertificates, AuthServerOptions options = null)
Parameters
parameters
TokenValidationParameterskeyUrl
stringhandler
HttpMessageHandlervalidateCertificates
booloptions
AuthServerOptions