bigbluebutton / greenlight

A really simple end-user interface for your BigBlueButton server.
GNU Lesser General Public License v3.0
787 stars 3.8k forks source link

Asian name transferred inverted from Keycloak to GLv3 #5814

Closed hiroshisuga closed 1 month ago

hiroshisuga commented 2 months ago

For external authentication we use Keycloak, which requires "first name" and "last name" when the account is created. They are compulsory fields; I cannot login GLv3 if leaving these fields blank.

It seems these first and last name will be transferred to GLv3 to show the user's name. In my case "Hiroshi" is the first name and "Suga" is the last name, and I see "Hiroshi Suga" nicely at the right top corner of GLv3. So far so good.

Now a problem happens when I enter Japanese name. My first name is "裕" and my last name is "菅", which is shown like "裕 菅" on GLv3. However, in Japanese we express our name in the "last name" "first name" order. So it has to be shown as "菅  裕".

I know western countries accept both order in some occasions, but Asian countries do not. The first name - last name order looks very strange when written in local letters.

Would it be possible to transfer the "Username" field of Keycloak to GLv3? If yes, I would propose to make the "first name" and "last name" fields optional because they seem not to be used any other place (am I correct?).

hiroshisuga commented 2 months ago

This is the case for Microsoft365 authentication. I have not tested other external authentications.

hiroshisuga commented 2 months ago

I asked ChatGPT:

What is the countries/regions where they arrange last name first?

ChatGPT In several countries and regions, it is common practice to arrange names with the last name (surname) first, followed by the first name (given name). Here are some notable examples:

East Asia China: Names are traditionally written with the family name first, followed by the given name. For example, "Mao Zedong" (Mao is the family name, Zedong is the given name). Japan: Japanese names are typically written with the family name first. For example, "Tanaka Hiroshi" (Tanaka is the family name, Hiroshi is the given name). However, in international contexts, Japanese people may reverse the order to align with Western conventions. Korea: Both South Korea and North Korea follow the practice of placing the family name first. For example, "Kim Jong-un" (Kim is the family name, Jong-un is the given name). Southeast Asia Vietnam: Vietnamese names are usually written with the family name first, followed by the given name. For example, "Nguyen Thi Minh Khai" (Nguyen is the family name, Thi Minh Khai is the given name). Hungary Hungary: In Hungarian, names are traditionally written with the family name first, followed by the given name. For example, "Nagy István" (Nagy is the family name, István is the given name). Other Examples Mongolia: Names are written with the family name first. For example, "Bat-Erdene Badmaanyambuu" (Bat-Erdene is the family name, Badmaanyambuu is the given name). Basque Country (Spain): Basque names sometimes follow the surname-first format, though this is less common today. Summary The practice of arranging the last name first is predominantly found in East Asian countries such as China, Japan, and Korea, as well as in Vietnam and Hungary. It reflects cultural norms and traditions regarding family and personal identity. When interacting with individuals from these cultures, it's respectful to be aware of and follow these naming conventions.

hiroshisuga commented 2 months ago

A workaround is to let users to change the name freely. See #5817 .

farhatahmad commented 1 month ago

This is something that would have to be configured in Keycloak itself. Greenlight just takes a name field from Keycloak, so you'd have to check in the Keycloak docs to get that working. I couldn't find anything through a quick google