Hi,
I’m moving from Javascript Lock invocation to using Universal Login from Java code.
My application is bilingual and I used to set the language the login page is displayed in using javascript. Looks like I can do the same with some config.extraParam thing, but I can’t find any example so far. Can someone please help with this?
My code currently looks like this :
String redirectUri = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + %MY_CALLBACK_PATH%;
String authorizeUrl = authenticationController.buildAuthorizeUrl(request, redirectUri)
.withAudience(String.format("https://%s/userinfo", domain))
.withScope("openid email profile")
.build();
response.sendRedirect(authorizeUrl);
How do I set the language that is used to display the login page at runtime in this code?
Thanks.