labring / labring/FastGPT

免登录的身份证验证和SSO集成账户一致性问题

Open
#7,332 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
29.6k
Forks
7.3k
Avg merge
1d 7h
Merged PRs (30d)
152

Description

**例行检查**

[//]: # '方框内填 x 表示打钩'

- [x] 我已确认目前没有类似 issue
- [x ] 我已完整查看过项目 README,以及[项目文档](https://doc.fastgpt.io/introduction/)
- [x] 我使用了自己的 key,并确认我的 key 是可正常使用的
- [x] 我理解并愿意跟进此 issue,协助测试和提供反馈
- [x] 我理解并认可上述内容,并理解项目维护者精力有限,**不遵循规则的 issue 可能会被无视或直接关闭**

**你的版本**

- [ ] 公有云版本
- [x] 私有部署版本, 具体版本号: v4.15.1

**问题描述, 日志截图,配置文件等**
免登录身份验证后,身份验证服务器会返回uid,该uid会作为智能体对话中的用户id参数,fastgpt和本地门户集成后创建的账户的uid又是fastgpt自己生成的,貌似无法指定uid,这就导致了两条链路的用户身份体系相互独立、未建立映射关联:同一名自然人用户,分别通过免登嵌入端和门户端访问 FastGPT 时,会被系统识别为两个完全独立的用户主体;业务侧自定义 uid 与 FastGPT 内部 uid 无法自动对应。
**复现步骤**

**预期结果**
希望有办法统一两种情况下的身份体系,例如门户集成时支持创建fastgpt账户的时候指定uid。
**相关截图**

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the passwordless identity-verification flow and the local portal account-creation flow in the v4.15.1 codebase, focusing on how the external uid and FastGPT’s internal uid are generated. Define and implement the account-linking behavior or supported uid assignment, then verify that the same person resolves to one account through both access paths.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
authentication, backend-api-design
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.