2 instantiations of AccessTokenResponse
Microsoft.AspNetCore.Authentication.BearerToken (2)
BearerTokenHandler.cs (1)
71var response = new AccessTokenResponse
BearerTokenJsonSerializerContext.AccessTokenResponse.g.cs (1)
32ObjectWithParameterizedConstructorCreator = 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)
71var response = new AccessTokenResponse 83private static JsonTypeInfo<AccessTokenResponse> ResolveAccessTokenJsonTypeInfo(HttpContext httpContext) 87?.Value?.SerializerOptions?.GetTypeInfo(typeof(AccessTokenResponse)) as JsonTypeInfo<AccessTokenResponse>;
BearerTokenJsonSerializerContext.AccessTokenResponse.g.cs (27)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Authentication.BearerToken.AccessTokenResponse>? _AccessTokenResponse; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Authentication.BearerToken.AccessTokenResponse> AccessTokenResponse 22get => _AccessTokenResponse ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Authentication.BearerToken.AccessTokenResponse>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Authentication.BearerToken.AccessTokenResponse)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Authentication.BearerToken.AccessTokenResponse> Create_AccessTokenResponse(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.Authentication.BearerToken.AccessTokenResponse>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Authentication.BearerToken.AccessTokenResponse> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.AspNetCore.Authentication.BearerToken.AccessTokenResponse> 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.BearerToken.AccessTokenResponse).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.AspNetCore.Authentication.BearerToken.AccessTokenResponse>(options, objectInfo); 56DeclaringType = typeof(global::Microsoft.AspNetCore.Authentication.BearerToken.AccessTokenResponse), 58Getter = static obj => ((global::Microsoft.AspNetCore.Authentication.BearerToken.AccessTokenResponse)obj).TokenType, 66AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.BearerToken.AccessTokenResponse).GetProperty("TokenType", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 77DeclaringType = typeof(global::Microsoft.AspNetCore.Authentication.BearerToken.AccessTokenResponse), 79Getter = static obj => ((global::Microsoft.AspNetCore.Authentication.BearerToken.AccessTokenResponse)obj).AccessToken, 87AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.BearerToken.AccessTokenResponse).GetProperty("AccessToken", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 100DeclaringType = typeof(global::Microsoft.AspNetCore.Authentication.BearerToken.AccessTokenResponse), 102Getter = static obj => ((global::Microsoft.AspNetCore.Authentication.BearerToken.AccessTokenResponse)obj).ExpiresIn, 110AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.BearerToken.AccessTokenResponse).GetProperty("ExpiresIn", InstanceMemberBindingFlags, null, typeof(long), global::System.Array.Empty<global::System.Type>(), null), 121DeclaringType = typeof(global::Microsoft.AspNetCore.Authentication.BearerToken.AccessTokenResponse), 123Getter = static obj => ((global::Microsoft.AspNetCore.Authentication.BearerToken.AccessTokenResponse)obj).RefreshToken, 131AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Authentication.BearerToken.AccessTokenResponse).GetProperty("RefreshToken", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 144private void AccessTokenResponseSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.AspNetCore.Authentication.BearerToken.AccessTokenResponse? value) 154writer.WriteString(PropName_TokenType, ((global::Microsoft.AspNetCore.Authentication.BearerToken.AccessTokenResponse)value).TokenType); 155writer.WriteString(PropName_AccessToken, ((global::Microsoft.AspNetCore.Authentication.BearerToken.AccessTokenResponse)value).AccessToken); 156writer.WriteNumber(PropName_ExpiresIn, ((global::Microsoft.AspNetCore.Authentication.BearerToken.AccessTokenResponse)value).ExpiresIn); 157writer.WriteString(PropName_RefreshToken, ((global::Microsoft.AspNetCore.Authentication.BearerToken.AccessTokenResponse)value).RefreshToken);
BearerTokenJsonSerializerContext.cs (1)
8[JsonSerializable(typeof(AccessTokenResponse))]
BearerTokenJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
22if (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)
198PopulateMetadataForEndpoint<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); 207var 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!); 356var 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!); 382PopulateMetadataForEndpoint<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); 391var 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!); 472var 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)
90routeGroup.MapPost("/login", async Task<Results<Ok<AccessTokenResponse>, EmptyHttpResult, ProblemHttpResult>> 122routeGroup.MapPost("/refresh", async Task<Results<Ok<AccessTokenResponse>, UnauthorizedHttpResult, SignInHttpResult, ChallengeHttpResult>>