Open Closed

connect/token endpoint - accept-language header is ignored #4059


User avatar
0
mgurer created
  • ABP Framework version: v6.0.1
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace: token endpoint accept-language header is ignored.
  • Steps to reproduce the issue
  • Hello

I have created a new demo app with following command; abp new CoMed -t microservice-pro -u blazor

I added a new openid application named demo with password 123456 and enabled all scopes. I altered demo application to accept passwrod, clientcredentials and refresh token flows.

I finally tried https://localhost:44322/connect/token end point with password flow. I used demo as client id and admin as username. I typed client password wrong to see the error message. I got "Invalid username or password!" error. I added "Accept-Language" header with value "tr". I tried again and error message is not localized.

Token endpoint ignores the accept-language header.

I tested same flow with version 5.X, header worked as expected.

Any suggestions?


1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Token endpoint ignores the accept-language header.

    The error message of openiddict is that English does not support localization.

    https://github.com/openiddict/openiddict-core/issues/1164#issuecomment-727247454

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11