之前使用的标准oidc后续换成了casdoor接入企微验证,但是之前登录的用户还能接着使用 #9302
Replies: 4 comments
-
📦 Deployment environmentDocker 📦 Deployment modeServer-side mode (lobe-chat-database mirror) 📌 Software versionLatest version 💻 System environmentOther Linux 🌐 BrowserChrome 🐛 Question descriptionThe standard oidc used before was subsequently replaced with Casdoor access to Qiwei Verification, but the user who logged in before can still use it. Why do you have this question? 📷 Reproduction stepsNo response 🚦 Expected resultsNo response 📝 Supplementary informationNo response |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
Beta Was this translation helpful? Give feedback.
-
|
你说的情况确实存在:切换认证方式后,之前 OIDC 登录的用户 session 不会自动失效,用户还能继续使用,因为 lobe-chat 会本地缓存用户信息和 session,不会每次请求都去 Casdoor 校验用户状态,只有等 session 过期或被手动清理才会强制重新登录 参考。 目前 lobe-chat 没有内置自动清理旧 session 的机制。要强制所有用户走 Casdoor 登录,你需要手动清理数据库里的旧 session。具体做法:
如果你只想清理 OIDC 用户,可以结合 目前没有官方文档或管理工具支持一键迁移或批量清理,只能通过数据库操作或代码调用相关方法实现 参考。 如果需要具体 SQL 或代码示例可以补充说明。 To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
|
@cy948 来看看这个? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
📦 部署环境
Docker
📦 部署模式
服务端模式(lobe-chat-database 镜像)
📌 软件版本
最新版本
💻 系统环境
Other Linux
🌐 浏览器
Chrome
🐛 问题描述
之前使用的标准oidc后续换成了casdoor接入企微验证,但是之前登录的用户还能接着使用
这种情况下如何清除原来oidc登录的用户的session,强制走casdoor登录
为什么会有这个疑问?
因为我看到message表里面还有用户在对话,但是这个用户在casdoor的用户表里面没有,那就是没走casdoor登录的用户还能接着使用。所以猜测是老的oidc登录后没有强制退出,session还在。
📷 复现步骤
No response
🚦 期望结果
No response
📝 补充信息
No response
Beta Was this translation helpful? Give feedback.
All reactions