2 instantiations of OAuthTokenResponse
Microsoft.AspNetCore.Authentication.OAuth (2)
OAuthTokenResponse.cs (2)
41return new OAuthTokenResponse(response); 51return new OAuthTokenResponse(error);
22 references to OAuthTokenResponse
Microsoft.AspNetCore.Authentication.Facebook (1)
FacebookHandler.cs (1)
40protected override async Task<AuthenticationTicket> CreateTicketAsync(ClaimsIdentity identity, AuthenticationProperties properties, OAuthTokenResponse tokens)
Microsoft.AspNetCore.Authentication.Google (1)
GoogleHandler.cs (1)
44OAuthTokenResponse tokens)
Microsoft.AspNetCore.Authentication.MicrosoftAccount (1)
MicrosoftAccountHandler.cs (1)
41protected override async Task<AuthenticationTicket> CreateTicketAsync(ClaimsIdentity identity, AuthenticationProperties properties, OAuthTokenResponse tokens)
Microsoft.AspNetCore.Authentication.OAuth (19)
Events\OAuthCreatingTicketContext.cs (2)
35OAuthTokenResponse tokens, 58public OAuthTokenResponse TokenResponse { get; }
OAuthHandler.cs (10)
134using var tokens = await ExchangeCodeAsync(codeExchangeContext); 197/// <returns>The response <see cref="OAuthTokenResponse"/>.</returns> 198protected virtual async Task<OAuthTokenResponse> ExchangeCodeAsync(OAuthCodeExchangeContext context) 227true => OAuthTokenResponse.Success(JsonDocument.Parse(body)), 232private static OAuthTokenResponse PrepareFailedOAuthTokenResponse(HttpResponseMessage response, string body) 234var exception = OAuthTokenResponse.GetStandardErrorException(JsonDocument.Parse(body)); 239return OAuthTokenResponse.Failed(new AuthenticationFailureException(errorMessage)); 242return OAuthTokenResponse.Failed(exception); 250/// <param name="tokens">The <see cref="OAuthTokenResponse"/>.</param> 252protected virtual async Task<AuthenticationTicket> CreateTicketAsync(ClaimsIdentity identity, AuthenticationProperties properties, OAuthTokenResponse tokens)
OAuthTokenResponse.cs (7)
15/// Initializes a new instance <see cref="OAuthTokenResponse"/>. 35/// Creates a successful <see cref="OAuthTokenResponse"/>. 38/// <returns>A <see cref="OAuthTokenResponse"/> instance.</returns> 39public static OAuthTokenResponse Success(JsonDocument response) 45/// Creates a failed <see cref="OAuthTokenResponse"/>. 48/// <returns>A <see cref="OAuthTokenResponse"/> instance.</returns> 49public static OAuthTokenResponse Failed(Exception error)