- Issue created by @leeomara
- 🇵🇹Portugal jcnventura
This would be a good feature to have, and if it is part of the standard, even better. Can you propose a patch, please?
It seems that Keycloak would support this, but maybe you can also tell us another IDP that could be used to test it?
- 🇨🇦Canada leeomara Whitehorse, Yukon
I'm currently doing work that's targeting Auth0, but I believe Azure AD also supports ui_locales.
- Auth0: Universal Login Internationalization - Language selection
- Microsoft: Language customization in Azure Active Directory
I'll work on a patch.
- 🇨🇦Canada leeomara Whitehorse, Yukon
I've created an initial patch, modifying the OpenIDConnectGenericClient client to support (optionally, when enabled) including a ui_locales arguments in the authorize call to the identity provider. Let me know if this should be made more generic (I.E. parts added to OpenIDConnectClientBase), or if there are other issues with this approach.
This is a port of the relevant parts from the Keycloak project.
I've tested this successfully with Auth0, why my English and French (fr) site would send "en" and "fr-CA" to Auth0, based on the site language.
It's been a long time since I've done serious Drupal work, so any feedback or direction would be much appreciated.
I was not able to find a relevant place to put in tests (I couldn't see where OpenIDConnectClient plugin functionality was tested), and I'm not proficient enough to know where to start on that front. Again, pointers or corrections are most welcome.
- 🇨🇦Canada leeomara Whitehorse, Yukon
Whoops, I accidentally included a logic short-cut that forced
isI18nEnabled
to always return true. This version has that removed.