<div dir="ltr">Hi!<div><br></div><div>My site is supporting various locale, for example: de_DE, en_US, fr_FR. This site is protected by SP. When user access some private page I want to display IdP login page in locale matching locale selected on public pages of protected site.</div>
<div><br></div><div>Is it possible to set different locale for IdP login page, based on some information sent in AuthnRequest?</div><div><br></div><div>In standard IdP configuration (using external login handler) login page take locale from request - browser settings. What I want to achieve is to override this default behaviour and be able to set locale based on some information stored on protected by SP site.</div>
<div><br></div><div>I'v tried to change SP configuration to make auth request via POST instead of redirect and modified bindingTemplate.html (add additional hidden field with locale value) - but this information is lost on IdP before it reach my code in LoginServlet.</div>
<div><br></div><div>I read something about authnRequest extensions, but don't know how to prepare such request on SP side. (I need to be able to incorporate in it some dynamic element <Locale>)</div><div>In SP documentation I found some entry about <span style="color:rgb(51,51,51);font-family:monospace;font-size:14px;line-height:20px"><samlp:AuthnRequest> </span>incorporated inside sessionIinitiator but I don't know if it's possible to add there custom XML tags with dynamic value.</div>
<div><br></div><div>Also I think about some solution using JSONP to retrieve in IdP login page locale from SP protected site - but it seems to be not that way how it should be handled (additional request)</div><div><br></div>
<div>Best Regards</div><div>Pawel</div></div>