OAuthHandler<TOptions> Class¶
- Namespace
Microsoft.AspNetCore.Authentication.OAuth
- Assemblies
- Microsoft.AspNetCore.Authentication.OAuth
Inheritance Hierarchy¶
System.Object
Microsoft.AspNetCore.Authentication.AuthenticationHandler{{TOptions}}
Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler{{TOptions}}
Microsoft.AspNetCore.Authentication.OAuth.OAuthHandler<TOptions>
Syntax¶
public class OAuthHandler<TOptions> : RemoteAuthenticationHandler<TOptions>, IAuthenticationHandler where TOptions : OAuthOptions
-
class
Microsoft.AspNetCore.Authentication.OAuth.
OAuthHandler<TOptions>
¶
Constructors¶
-
OAuthHandler
(System.Net.Http.HttpClient)¶ public OAuthHandler(HttpClient backchannel)
-
Properties¶
-
Microsoft.AspNetCore.Authentication.OAuth.OAuthHandler<TOptions>.
Backchannel
¶ Return type: System.Net.Http.HttpClient protected HttpClient Backchannel { get; }
-
Methods¶
-
BuildChallengeUrl
(Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties, System.String)¶ Return type: System.String protected virtual string BuildChallengeUrl(AuthenticationProperties properties, string redirectUri)
-
CreateTicketAsync
(System.Security.Claims.ClaimsIdentity, Microsoft.AspNetCore.Http.Authentication.AuthenticationProperties, Microsoft.AspNetCore.Authentication.OAuth.OAuthTokenResponse)¶ Return type: System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticationTicket> protected virtual Task<AuthenticationTicket> CreateTicketAsync(ClaimsIdentity identity, AuthenticationProperties properties, OAuthTokenResponse tokens)
-
ExchangeCodeAsync
(System.String, System.String)¶ Return type: System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.OAuth.OAuthTokenResponse> protected virtual Task<OAuthTokenResponse> ExchangeCodeAsync(string code, string redirectUri)
-
FormatScope
()¶ Return type: System.String protected virtual string FormatScope()
-
HandleRemoteAuthenticateAsync
()¶ Return type: System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.AuthenticateResult> protected override Task<AuthenticateResult> HandleRemoteAuthenticateAsync()
Return type: System.Threading.Tasks.Task<System.Boolean> protected override Task<bool> HandleUnauthorizedAsync(ChallengeContext context)
-