lobe-chat icon indicating copy to clipboard operation
lobe-chat copied to clipboard

[Bug] undefined Logged in

Open ornell opened this issue 10 months ago • 3 comments

💻 Operating System

macOS

📦 Environment

Docker

🌐 Browser

Chrome

🐛 Bug Description

Screenshot 2024-04-21 at 23 26 19 When using Zitadel for auth and you have signed in, on the setting page (/settings/common) instead of showing the name, username or email for the signed in user it shows "undefined Logged in".

🚦 Expected Behavior

Show given name, given + last name, nickname or email provided by zitadel.

📷 Recurrence Steps

No response

📝 Additional Information

No response

ornell avatar Apr 21 '24 21:04 ornell

👀 @ornell

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

lobehubbot avatar Apr 21 '24 21:04 lobehubbot

@YangHanlin please help to check

arvinxx avatar Apr 25 '24 01:04 arvinxx

@ornell Do you have Application Settings > Token Settings > User Info inside ID token enabled? If not, could you please enable this option and try again?

image

yanghanlin avatar Apr 25 '24 01:04 yanghanlin

You are entirely correct. It worked. Checked the docs and couldn't see it here though: https://lobehub.com/docs/self-hosting/advanced/sso-providers/zitadel

MIght be worth adding :)

ornell avatar Apr 29 '24 20:04 ornell

✅ @ornell

This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。

lobehubbot avatar Apr 29 '24 20:04 lobehubbot