1 instantiation of TwoFactorRequest
Microsoft.AspNetCore.Identity (1)
IdentityEndpointsJsonSerializerContext.TwoFactorRequest.g.cs (1)
32
ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.AspNetCore.Identity.Data.
TwoFactorRequest
(){ Enable = (bool?)args[0], TwoFactorCode = (string)args[1], ResetSharedKey = (bool)args[2], ResetRecoveryCodes = (bool)args[3], ForgetMachine = (bool)args[4] },
46 references to TwoFactorRequest
Microsoft.AspNetCore.Identity (46)
Data\IdentityEndpointsJsonSerializerContext.cs (1)
16
[JsonSerializable(typeof(
TwoFactorRequest
))]
Data\TwoFactorResponse.cs (1)
25
/// <see cref="
TwoFactorRequest
.ResetRecoveryCodes"/> was set or two-factor was enabled for the first time.
GeneratedRouteBuilderExtensions.g.cs (11)
991
options.EndpointBuilder.Metadata.Add(new AcceptsMetadata(type: typeof(global::Microsoft.AspNetCore.Identity.Data.
TwoFactorRequest
), isOptional: false, contentTypes: GeneratedMetadataConstants.JsonContentType));
1005
var handler = Cast(del, global::System.Threading.Tasks.Task<global::Microsoft.AspNetCore.Http.HttpResults.Results<global::Microsoft.AspNetCore.Http.HttpResults.Ok<global::Microsoft.AspNetCore.Identity.Data.TwoFactorResponse>, global::Microsoft.AspNetCore.Http.HttpResults.ValidationProblem, global::Microsoft.AspNetCore.Http.HttpResults.NotFound>> (global::System.Security.Claims.ClaimsPrincipal arg0, global::Microsoft.AspNetCore.Identity.Data.
TwoFactorRequest
arg1, global::System.IServiceProvider arg2) => throw null!);
1013
var tfaRequest_JsonTypeInfo = (JsonTypeInfo<global::Microsoft.AspNetCore.Identity.Data.
TwoFactorRequest
>)jsonSerializerOptions.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Identity.Data.
TwoFactorRequest
));
1023
var task = handler(ic.GetArgument<global::System.Security.Claims.ClaimsPrincipal>(0)!, ic.GetArgument<global::Microsoft.AspNetCore.Identity.Data.
TwoFactorRequest
>(1)!, ic.GetArgument<global::System.IServiceProvider>(2)!);
1036
var tfaRequest_resolveBodyResult = await GeneratedRouteBuilderExtensionsCore.TryResolveBodyAsync<global::Microsoft.AspNetCore.Identity.Data.
TwoFactorRequest
>(httpContext, logOrThrowExceptionHelper, false, "TwoFactorRequest", "tfaRequest", tfaRequest_JsonTypeInfo);
1037
var
tfaRequest_local = tfaRequest_resolveBodyResult.Item2;
1064
var tfaRequest_resolveBodyResult = await GeneratedRouteBuilderExtensionsCore.TryResolveBodyAsync<global::Microsoft.AspNetCore.Identity.Data.
TwoFactorRequest
>(httpContext, logOrThrowExceptionHelper, false, "TwoFactorRequest", "tfaRequest", tfaRequest_JsonTypeInfo);
1065
var
tfaRequest_local = tfaRequest_resolveBodyResult.Item2;
1077
var result = await filteredInvocation(EndpointFilterInvocationContext.Create<global::System.Security.Claims.ClaimsPrincipal, global::Microsoft.AspNetCore.Identity.Data.
TwoFactorRequest
, global::System.IServiceProvider>(httpContext, claimsPrincipal_local, tfaRequest_local!, sp_local));
1088
var castHandler = Cast(handler, global::System.Threading.Tasks.Task<global::Microsoft.AspNetCore.Http.HttpResults.Results<global::Microsoft.AspNetCore.Http.HttpResults.Ok<global::Microsoft.AspNetCore.Identity.Data.TwoFactorResponse>, global::Microsoft.AspNetCore.Http.HttpResults.ValidationProblem, global::Microsoft.AspNetCore.Http.HttpResults.NotFound>> (global::System.Security.Claims.ClaimsPrincipal arg0, global::Microsoft.AspNetCore.Identity.Data.
TwoFactorRequest
arg1, global::System.IServiceProvider arg2) => throw null!);
IdentityApiEndpointRouteBuilderExtensions.cs (1)
261
(ClaimsPrincipal claimsPrincipal, [FromBody]
TwoFactorRequest
tfaRequest, [FromServices] IServiceProvider sp) =>
IdentityEndpointsJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
62
if (type == typeof(global::Microsoft.AspNetCore.Identity.Data.
TwoFactorRequest
))
IdentityEndpointsJsonSerializerContext.TwoFactorRequest.g.cs (31)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Identity.Data.
TwoFactorRequest
>? _TwoFactorRequest;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Identity.Data.
TwoFactorRequest
> TwoFactorRequest
22
get => _TwoFactorRequest ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Identity.Data.
TwoFactorRequest
>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Identity.Data.
TwoFactorRequest
));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Identity.Data.
TwoFactorRequest
> Create_TwoFactorRequest(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.Identity.Data.
TwoFactorRequest
>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Identity.Data.
TwoFactorRequest
> jsonTypeInfo))
29
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.AspNetCore.Identity.Data.
TwoFactorRequest
>
35
ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.
TwoFactorRequest
).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
39
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.AspNetCore.Identity.Data.
TwoFactorRequest
>(options, objectInfo);
56
DeclaringType = typeof(global::Microsoft.AspNetCore.Identity.Data.
TwoFactorRequest
),
58
Getter = static obj => ((global::Microsoft.AspNetCore.Identity.Data.
TwoFactorRequest
)obj).Enable,
66
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.
TwoFactorRequest
).GetProperty("Enable", InstanceMemberBindingFlags, null, typeof(bool?), global::System.Array.Empty<global::System.Type>(), null),
76
DeclaringType = typeof(global::Microsoft.AspNetCore.Identity.Data.
TwoFactorRequest
),
78
Getter = static obj => ((global::Microsoft.AspNetCore.Identity.Data.
TwoFactorRequest
)obj).TwoFactorCode,
86
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.
TwoFactorRequest
).GetProperty("TwoFactorCode", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
96
DeclaringType = typeof(global::Microsoft.AspNetCore.Identity.Data.
TwoFactorRequest
),
98
Getter = static obj => ((global::Microsoft.AspNetCore.Identity.Data.
TwoFactorRequest
)obj).ResetSharedKey,
106
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.
TwoFactorRequest
).GetProperty("ResetSharedKey", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
116
DeclaringType = typeof(global::Microsoft.AspNetCore.Identity.Data.
TwoFactorRequest
),
118
Getter = static obj => ((global::Microsoft.AspNetCore.Identity.Data.
TwoFactorRequest
)obj).ResetRecoveryCodes,
126
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.
TwoFactorRequest
).GetProperty("ResetRecoveryCodes", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
136
DeclaringType = typeof(global::Microsoft.AspNetCore.Identity.Data.
TwoFactorRequest
),
138
Getter = static obj => ((global::Microsoft.AspNetCore.Identity.Data.
TwoFactorRequest
)obj).ForgetMachine,
146
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Identity.Data.
TwoFactorRequest
).GetProperty("ForgetMachine", InstanceMemberBindingFlags, null, typeof(bool), global::System.Array.Empty<global::System.Type>(), null),
156
private void TwoFactorRequestSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.AspNetCore.Identity.Data.
TwoFactorRequest
? value)
167
global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::Microsoft.AspNetCore.Identity.Data.
TwoFactorRequest
)value).Enable, NullableBoolean);
168
writer.WriteString(PropName_TwoFactorCode, ((global::Microsoft.AspNetCore.Identity.Data.
TwoFactorRequest
)value).TwoFactorCode);
169
writer.WriteBoolean(PropName_ResetSharedKey, ((global::Microsoft.AspNetCore.Identity.Data.
TwoFactorRequest
)value).ResetSharedKey);
170
writer.WriteBoolean(PropName_ResetRecoveryCodes, ((global::Microsoft.AspNetCore.Identity.Data.
TwoFactorRequest
)value).ResetRecoveryCodes);
171
writer.WriteBoolean(PropName_ForgetMachine, ((global::Microsoft.AspNetCore.Identity.Data.
TwoFactorRequest
)value).ForgetMachine);