Skip to content

identity WebAPIs don't respect the configured fromat (json/msgpack) #64279

@amirreza8002

Description

@amirreza8002

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

hi
in my project i've configured msgpack as the format for APIs to use and all my endpoints use these formatters for all interactions
but identity endpoints still use json

using https://github.com/AArnott/Nerdbank.MessagePack with this config

builder
    .Services.AddControllersWithViews()
    .AddMvcOptions(option =>
    {
        option.OutputFormatters.Clear();
        option.OutputFormatters.Add(
            new MessagePackOutputFormatter(Witness.GeneratedTypeShapeProvider)
        );
        option.InputFormatters.Clear();
        option.InputFormatters.Add(
            new MessagePackInputFormatter(Witness.GeneratedTypeShapeProvider)
        );
    });

i would expect all input and outputs to be msgpack

Expected Behavior

i expect all the edpoints to use the same format

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

9.0.110

Anything else?

Microsoft.AspNetCore.App 9.0.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-area-labelUsed by the dotnet-issue-labeler to label those issues which couldn't be triaged automatically

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions