2

my application is composed by a asp.net core webapp client and a asp,net core webapi hosting the identityserver4.

I need to pass to my is4 the ui_locales to localize the login web form. How i do this ?

Thanks to this post How to pass ui_locales from AuthorizeRequest to the controller i know how to read inside the login controller but i don't know how i need to setup inside the client.

Thanks for help

Stefano
  • 83
  • 2
  • 8
  • 2
    Ok i've found the solution. In startup class, when i set the client i can write options.Events = new OpenIdConnectEvents { OnRedirectToIdentityProvider = context => { context.ProtocolMessage.UiLocales = "it-IT"; return Task.CompletedTask; } }; I think i have the same result with the : ontext.ProtocolMessage.SetParameter() but i haven't tested – Stefano Feb 03 '18 at 15:24
  • Hello, how do you return that ui_locales after the user has logged in Idsv4? When it redirects to the original client, we should display the correct localized website. How did you achieve it? – TTCG Jul 20 '20 at 21:22

0 Answers0