1 instantiation of TwoFactorResponse
Microsoft.AspNetCore.Identity (1)
IdentityApiEndpointRouteBuilderExtensions.cs (1)
326
return TypedResults.Ok(new
TwoFactorResponse
7 references to TwoFactorResponse
Microsoft.AspNetCore.Identity (7)
Data\IdentityEndpointsJsonSerializerContext.cs (1)
17
[JsonSerializable(typeof(
TwoFactorResponse
))]
Data\LoginRequest.cs (1)
30
/// An optional two-factor recovery code from <see cref="
TwoFactorResponse
.RecoveryCodes"/>.
Data\TwoFactorRequest.cs (4)
20
/// The two-factor code derived from the <see cref="
TwoFactorResponse
.SharedKey"/>. This is only required if <see cref="Enable"/> is set to <see langword="true"/>.
25
/// An optional <see cref="bool"/> to reset the <see cref="
TwoFactorResponse
.SharedKey"/> to a new random value if <see langword="true"/>.
31
/// An optional <see cref="bool"/> to reset the <see cref="
TwoFactorResponse
.RecoveryCodes"/> to new random values if <see langword="true"/>.
32
/// <see cref="
TwoFactorResponse
.RecoveryCodes"/> will be empty unless they are reset or two-factor was enabled for the first time.
IdentityApiEndpointRouteBuilderExtensions.cs (1)
260
accountGroup.MapPost("/2fa", async Task<Results<Ok<
TwoFactorResponse
>, ValidationProblem, NotFound>>