/* * Licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) * See https://github.com/openiddict/openiddict-core for more information concerning * the license and the contributors participating to this project. */ using System.Collections.Immutable; namespace OpenIddict.Server.AspNetCore; public static partial class OpenIddictServerAspNetCoreHandlers { public static class Exchange { public static ImmutableArray DefaultHandlers { get; } = [ /* * Token request extraction: */ ExtractPostRequest.Descriptor, ValidateClientAuthenticationMethod.Descriptor, ExtractClientAuthenticationCertificate.Descriptor, ExtractBasicAuthenticationCredentials.Descriptor, /* * Token request handling: */ EnablePassthroughMode.Descriptor, /* * Token response processing: */ AttachHttpResponseCode.Descriptor, AttachCacheControlHeader.Descriptor, AttachWwwAuthenticateHeader.Descriptor, ProcessJsonResponse.Descriptor ]; } }