Class CloudFoundryOAuthHandler
- Namespace
- Steeltoe.Security.Authentication.CloudFoundry
- Assembly
- Steeltoe.Security.Authentication.CloudFoundryCore.dll
public class CloudFoundryOAuthHandler : OAuthHandler<CloudFoundryOAuthOptions>, IAuthenticationRequestHandler, IAuthenticationHandler
- Inheritance
-
CloudFoundryOAuthHandler
- Implements
- Inherited Members
Constructors
CloudFoundryOAuthHandler(IOptionsMonitor<CloudFoundryOAuthOptions>, ILoggerFactory, UrlEncoder, ISystemClock)
public CloudFoundryOAuthHandler(IOptionsMonitor<CloudFoundryOAuthOptions> options, ILoggerFactory logger, UrlEncoder encoder, ISystemClock clock)
Parameters
options
IOptionsMonitor<CloudFoundryOAuthOptions>logger
ILoggerFactoryencoder
UrlEncoderclock
ISystemClock
Methods
BuildChallengeUrl(AuthenticationProperties, string)
protected override string BuildChallengeUrl(AuthenticationProperties properties, string redirectUri)
Parameters
properties
AuthenticationPropertiesredirectUri
string
Returns
CreateTicketAsync(ClaimsIdentity, AuthenticationProperties, OAuthTokenResponse)
protected override Task<AuthenticationTicket> CreateTicketAsync(ClaimsIdentity identity, AuthenticationProperties properties, OAuthTokenResponse tokens)
Parameters
identity
ClaimsIdentityproperties
AuthenticationPropertiestokens
OAuthTokenResponse
Returns
ExchangeCodeAsync(string, string)
protected override Task<OAuthTokenResponse> ExchangeCodeAsync(string code, string redirectUri)
Parameters
Returns
GetEncoded(string, string)
protected string GetEncoded(string user, string password)
Parameters
Returns
GetHttpClient()
protected virtual HttpClient GetHttpClient()
Returns
GetTokenInfoRequestMessage(OAuthTokenResponse)
protected virtual HttpRequestMessage GetTokenInfoRequestMessage(OAuthTokenResponse tokens)
Parameters
tokens
OAuthTokenResponse
Returns
GetTokenInfoRequestParameters(OAuthTokenResponse)
protected virtual Dictionary<string, string> GetTokenInfoRequestParameters(OAuthTokenResponse tokens)
Parameters
tokens
OAuthTokenResponse