2 instantiations of AccessTokenResponse
Microsoft.AspNetCore.Authentication.BearerToken (2)
BearerTokenHandler.cs (1)
71
var response = new
AccessTokenResponse
BearerTokenJsonSerializerContext.AccessTokenResponse.g.cs (1)
32
ObjectWithParameterizedConstructorCreator = static args => new global::Microsoft.AspNetCore.Authentication.BearerToken.
AccessTokenResponse
(){ AccessToken = (string)args[0], ExpiresIn = (long)args[1], RefreshToken = (string)args[2] },
43 references to AccessTokenResponse
Microsoft.AspNetCore.Authentication.BearerToken (33)
BearerTokenHandler.cs (4)
71
var
response = new AccessTokenResponse
83
private static JsonTypeInfo<
AccessTokenResponse
> ResolveAccessTokenJsonTypeInfo(HttpContext httpContext)
87
?.Value?.SerializerOptions?.GetTypeInfo(typeof(
AccessTokenResponse
)) as JsonTypeInfo<
AccessTokenResponse
>;
BearerTokenJsonSerializerContext.AccessTokenResponse.g.cs (27)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Authentication.BearerToken.
AccessTokenResponse
>? _AccessTokenResponse;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Authentication.BearerToken.
AccessTokenResponse
> AccessTokenResponse
22
get => _AccessTokenResponse ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Authentication.BearerToken.
AccessTokenResponse
>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Authentication.BearerToken.
AccessTokenResponse
));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Authentication.BearerToken.
AccessTokenResponse
> Create_AccessTokenResponse(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.Authentication.BearerToken.
AccessTokenResponse
>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Authentication.BearerToken.
AccessTokenResponse
> jsonTypeInfo))
29
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.AspNetCore.Authentication.BearerToken.
AccessTokenResponse
>
35
ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.BearerToken.
AccessTokenResponse
).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.Authentication.BearerToken.
AccessTokenResponse
>(options, objectInfo);
56
DeclaringType = typeof(global::Microsoft.AspNetCore.Authentication.BearerToken.
AccessTokenResponse
),
58
Getter = static obj => ((global::Microsoft.AspNetCore.Authentication.BearerToken.
AccessTokenResponse
)obj).TokenType,
66
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.BearerToken.
AccessTokenResponse
).GetProperty("TokenType", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
77
DeclaringType = typeof(global::Microsoft.AspNetCore.Authentication.BearerToken.
AccessTokenResponse
),
79
Getter = static obj => ((global::Microsoft.AspNetCore.Authentication.BearerToken.
AccessTokenResponse
)obj).AccessToken,
87
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.BearerToken.
AccessTokenResponse
).GetProperty("AccessToken", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
100
DeclaringType = typeof(global::Microsoft.AspNetCore.Authentication.BearerToken.
AccessTokenResponse
),
102
Getter = static obj => ((global::Microsoft.AspNetCore.Authentication.BearerToken.
AccessTokenResponse
)obj).ExpiresIn,
110
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.BearerToken.
AccessTokenResponse
).GetProperty("ExpiresIn", InstanceMemberBindingFlags, null, typeof(long), global::System.Array.Empty<global::System.Type>(), null),
121
DeclaringType = typeof(global::Microsoft.AspNetCore.Authentication.BearerToken.
AccessTokenResponse
),
123
Getter = static obj => ((global::Microsoft.AspNetCore.Authentication.BearerToken.
AccessTokenResponse
)obj).RefreshToken,
131
AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.BearerToken.
AccessTokenResponse
).GetProperty("RefreshToken", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
144
private void AccessTokenResponseSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.AspNetCore.Authentication.BearerToken.
AccessTokenResponse
? value)
154
writer.WriteString(PropName_TokenType, ((global::Microsoft.AspNetCore.Authentication.BearerToken.
AccessTokenResponse
)value).TokenType);
155
writer.WriteString(PropName_AccessToken, ((global::Microsoft.AspNetCore.Authentication.BearerToken.
AccessTokenResponse
)value).AccessToken);
156
writer.WriteNumber(PropName_ExpiresIn, ((global::Microsoft.AspNetCore.Authentication.BearerToken.
AccessTokenResponse
)value).ExpiresIn);
157
writer.WriteString(PropName_RefreshToken, ((global::Microsoft.AspNetCore.Authentication.BearerToken.
AccessTokenResponse
)value).RefreshToken);
BearerTokenJsonSerializerContext.cs (1)
8
[JsonSerializable(typeof(
AccessTokenResponse
))]
BearerTokenJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
22
if (type == typeof(global::Microsoft.AspNetCore.Authentication.BearerToken.
AccessTokenResponse
))
Microsoft.AspNetCore.Identity (10)
Data\RefreshRequest.cs (2)
15
/// The <see cref="
AccessTokenResponse
.RefreshToken"/> from the last "/login" or "/refresh" response used to get a new <see cref="
AccessTokenResponse
"/>
GeneratedRouteBuilderExtensions.g.cs (6)
198
PopulateMetadataForEndpoint<global::Microsoft.AspNetCore.Http.HttpResults.Results<global::Microsoft.AspNetCore.Http.HttpResults.Ok<global::Microsoft.AspNetCore.Authentication.BearerToken.
AccessTokenResponse
>, global::Microsoft.AspNetCore.Http.HttpResults.EmptyHttpResult, global::Microsoft.AspNetCore.Http.HttpResults.ProblemHttpResult>>(methodInfo, options.EndpointBuilder);
207
var handler = Cast(del, global::System.Threading.Tasks.Task<global::Microsoft.AspNetCore.Http.HttpResults.Results<global::Microsoft.AspNetCore.Http.HttpResults.Ok<global::Microsoft.AspNetCore.Authentication.BearerToken.
AccessTokenResponse
>, global::Microsoft.AspNetCore.Http.HttpResults.EmptyHttpResult, global::Microsoft.AspNetCore.Http.HttpResults.ProblemHttpResult>> (global::Microsoft.AspNetCore.Identity.Data.LoginRequest arg0, global::System.Boolean? arg1, global::System.Boolean? arg2, global::System.IServiceProvider arg3) => throw null!);
356
var castHandler = Cast(handler, global::System.Threading.Tasks.Task<global::Microsoft.AspNetCore.Http.HttpResults.Results<global::Microsoft.AspNetCore.Http.HttpResults.Ok<global::Microsoft.AspNetCore.Authentication.BearerToken.
AccessTokenResponse
>, global::Microsoft.AspNetCore.Http.HttpResults.EmptyHttpResult, global::Microsoft.AspNetCore.Http.HttpResults.ProblemHttpResult>> (global::Microsoft.AspNetCore.Identity.Data.LoginRequest arg0, global::System.Boolean? arg1, global::System.Boolean? arg2, global::System.IServiceProvider arg3) => throw null!);
382
PopulateMetadataForEndpoint<global::Microsoft.AspNetCore.Http.HttpResults.Results<global::Microsoft.AspNetCore.Http.HttpResults.Ok<global::Microsoft.AspNetCore.Authentication.BearerToken.
AccessTokenResponse
>, global::Microsoft.AspNetCore.Http.HttpResults.UnauthorizedHttpResult, global::Microsoft.AspNetCore.Http.HttpResults.SignInHttpResult, global::Microsoft.AspNetCore.Http.HttpResults.ChallengeHttpResult>>(methodInfo, options.EndpointBuilder);
391
var handler = Cast(del, global::System.Threading.Tasks.Task<global::Microsoft.AspNetCore.Http.HttpResults.Results<global::Microsoft.AspNetCore.Http.HttpResults.Ok<global::Microsoft.AspNetCore.Authentication.BearerToken.
AccessTokenResponse
>, global::Microsoft.AspNetCore.Http.HttpResults.UnauthorizedHttpResult, global::Microsoft.AspNetCore.Http.HttpResults.SignInHttpResult, global::Microsoft.AspNetCore.Http.HttpResults.ChallengeHttpResult>> (global::Microsoft.AspNetCore.Identity.Data.RefreshRequest arg0, global::System.IServiceProvider arg1) => throw null!);
472
var castHandler = Cast(handler, global::System.Threading.Tasks.Task<global::Microsoft.AspNetCore.Http.HttpResults.Results<global::Microsoft.AspNetCore.Http.HttpResults.Ok<global::Microsoft.AspNetCore.Authentication.BearerToken.
AccessTokenResponse
>, global::Microsoft.AspNetCore.Http.HttpResults.UnauthorizedHttpResult, global::Microsoft.AspNetCore.Http.HttpResults.SignInHttpResult, global::Microsoft.AspNetCore.Http.HttpResults.ChallengeHttpResult>> (global::Microsoft.AspNetCore.Identity.Data.RefreshRequest arg0, global::System.IServiceProvider arg1) => throw null!);
IdentityApiEndpointRouteBuilderExtensions.cs (2)
90
routeGroup.MapPost("/login", async Task<Results<Ok<
AccessTokenResponse
>, EmptyHttpResult, ProblemHttpResult>>
122
routeGroup.MapPost("/refresh", async Task<Results<Ok<
AccessTokenResponse
>, UnauthorizedHttpResult, SignInHttpResult, ChallengeHttpResult>>