You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the hostname (Eg: "test.gov.rs") of WSO2 IS includes a domain that is in the Public Suffix List [1], the localization fails in the webapps. This is because the "ui_lang" cookie is not being set correctly due to browser restrictions [2] against setting cookies for domains in the Public Suffix List.
When the domain is extracted using the extractDomainFromHost() method [3] and if the domain is in the Public Suffix List (Eg: "gov.rs"), setting the cookie is restricted by the browser. We need to check if a domain is in the Public Suffix List before setting the cookie against it.
Open https://test.gov.rs/console in the browser and try to switch the language in the login page. The language switcher will not work since the "ui_lang" cookie is not being set.
Expected behavior:
The "ui_lang" cookie should be set correctly
Describe the issue:
When the hostname (Eg: "test.gov.rs") of WSO2 IS includes a domain that is in the Public Suffix List [1], the localization fails in the webapps. This is because the "ui_lang" cookie is not being set correctly due to browser restrictions [2] against setting cookies for domains in the Public Suffix List.
When the domain is extracted using the extractDomainFromHost() method [3] and if the domain is in the Public Suffix List (Eg: "gov.rs"), setting the cookie is restricted by the browser. We need to check if a domain is in the Public Suffix List before setting the cookie against it.
[1] https://publicsuffix.org/list/public_suffix_list.dat
[2] https://publicsuffix.org/learn/
[3] https://github.com/wso2/identity-apps/blob/d2b06cbf70f3ccf5857d17711f247715ba542783/identity-apps-core/apps/authentication-portal/src/main/webapp/includes/language-switcher.jsp#L66
How to reproduce:
127.0.0.1 test.gov.rs
Expected behavior:
The "ui_lang" cookie should be set correctly
Environment information:
Optional Fields
Related issues:
#18315
The text was updated successfully, but these errors were encountered: