Class CloudFoundryOAuthHandler
Inheritance
System.Object
CloudFoundryOAuthHandler
Assembly: Steeltoe.Security.Authentication.CloudFoundryCore.dll
Syntax
public class CloudFoundryOAuthHandler : OAuthHandler<CloudFoundryOAuthOptions>
Constructors
|
Edit this page
View Source
CloudFoundryOAuthHandler(IOptionsMonitor<CloudFoundryOAuthOptions>, ILoggerFactory, UrlEncoder, ISystemClock)
Declaration
public CloudFoundryOAuthHandler(IOptionsMonitor<CloudFoundryOAuthOptions> options, ILoggerFactory logger, UrlEncoder encoder, ISystemClock clock)
Parameters
Type |
Name |
Description |
IOptionsMonitor<CloudFoundryOAuthOptions> |
options |
|
ILoggerFactory |
logger |
|
UrlEncoder |
encoder |
|
ISystemClock |
clock |
|
Methods
|
Edit this page
View Source
BuildChallengeUrl(AuthenticationProperties, String)
Declaration
protected override string BuildChallengeUrl(AuthenticationProperties properties, string redirectUri)
Parameters
Type |
Name |
Description |
AuthenticationProperties |
properties |
|
System.String |
redirectUri |
|
Returns
Type |
Description |
System.String |
|
|
Edit this page
View Source
CreateTicketAsync(ClaimsIdentity, AuthenticationProperties, OAuthTokenResponse)
Declaration
protected override async Task<AuthenticationTicket> CreateTicketAsync(ClaimsIdentity identity, AuthenticationProperties properties, OAuthTokenResponse tokens)
Parameters
Type |
Name |
Description |
ClaimsIdentity |
identity |
|
AuthenticationProperties |
properties |
|
OAuthTokenResponse |
tokens |
|
Returns
Type |
Description |
Task<AuthenticationTicket> |
|
|
Edit this page
View Source
ExchangeCodeAsync(OAuthCodeExchangeContext)
Declaration
protected override async Task<OAuthTokenResponse> ExchangeCodeAsync(OAuthCodeExchangeContext context)
Parameters
Type |
Name |
Description |
OAuthCodeExchangeContext |
context |
|
Returns
Type |
Description |
Task<OAuthTokenResponse> |
|
|
Edit this page
View Source
GetEncoded(String, String)
Declaration
protected string GetEncoded(string user, string password)
Parameters
Type |
Name |
Description |
System.String |
user |
|
System.String |
password |
|
Returns
Type |
Description |
System.String |
|
|
Edit this page
View Source
GetHttpClient()
Declaration
protected virtual HttpClient GetHttpClient()
Returns
Type |
Description |
HttpClient |
|
|
Edit this page
View Source
GetTokenInfoRequestMessage(OAuthTokenResponse)
Declaration
protected virtual HttpRequestMessage GetTokenInfoRequestMessage(OAuthTokenResponse tokens)
Parameters
Type |
Name |
Description |
OAuthTokenResponse |
tokens |
|
Returns
Type |
Description |
HttpRequestMessage |
|
|
Edit this page
View Source
GetTokenInfoRequestParameters(OAuthTokenResponse)
Declaration
protected virtual Dictionary<string, string> GetTokenInfoRequestParameters(OAuthTokenResponse tokens)
Parameters
Type |
Name |
Description |
OAuthTokenResponse |
tokens |
|
Returns
Type |
Description |
Dictionary<System.String, System.String> |
|