Repository navigation
feat(auth): 跳转 UniSSO 注册时携带 redirect_uri,注册完回跳集市 - #2
Merged
Merged
Conversation
- 注册页按登录守卫留下的 redirect 深链生成回跳地址,默认回集市首页 - 登录页“注册账号”链接同样带上回跳地址 - 回跳地址由 UniSSO 侧校验域名后整页跳转,避免停留在 SSO 前端 Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题
集市点「注册」跳到 SSO 注册页,注册成功后停留在 SSO 前端,不会回到主站。
方案
RegisterView:跳转https://sso.ssemarket.cn/register时带redirect_uri;redirect深链,默认回集市首页;router.resolve()拼上应用基路径(/new/),再补成绝对地址交给 SSO 校验。LoginView:「注册账号」链接同样带redirect_uri。配套 SSO PR:SysuMirror/unisso#6
验证
vue-tsc --noEmit通过(0 error)redirect时默认回https://ssemarket.cn/new/部署顺序
两个 PR 都合并即可;先后顺序不会回归: