Support separate URLs for server/client side connection to Kratos
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 48/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- next.js, typescript
调研方向
首先检查 @ory/nextjs 配置以及 ORY_SDK_URL 的所有使用位置,然后追踪服务器请求和浏览器重定向的配置方式。完成的标准是:服务器可以使用内部 Kratos URL,而浏览器对自助服务端点使用公开 URL,且不会重定向到内部地址。
由索引模型根据 Issue 内容生成。
描述
Preflight checklist
- I could not find a solution in the existing issues, docs, nor discussions.
- I agree to follow this project's Code of Conduct.
- I have read and am following this repository's Contribution Guidelines.
- I have joined the Ory Community Slack.
- I am signed up to the Ory Security Patch Newsletter.
Ory Network Project
No response
Describe your problem
In a self-hosted environment with limited outbound connectivity, it may not be possible for the login (NextJS) server to communicate with Kratos via the public internal URL. Currently the env (NEXT_PUBLIC_)ORY_SDK_URL affects both the server- and client-side connections.
Describe your ideal solution
I would like to be able to specify a public URL https://example.com so that the browser can connect to Kratos public endpoints at https://example.com/self-service/... etc., and also an "internal" URL http://kratos-public that the NextJS server app can use to make connections directly within the same internal network.
Workarounds or alternatives
I have tried setting the external URL in the ory.config.ts file to the public URL and passing the private URL to the server with ORY_SDK_URL, but the browser still ends up redirecting the user to the private URL, which is unreachable.
Version
@ory/nextjs/1.0.0-rc.1
Additional Context
No response
- 主要语言
- TypeScript
- 星标
- 187
- 派生
- 80
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ory/elements 的其他 Issue
-
Needs Triage
难度 2/5 1-3 小时 新手友好度 70/100
-
good first issue help wanted upstream
难度 2/5 1-3 小时 新手友好度 45/100
-
good first issue help wanted upstream
难度 3/5 1-2 天 新手友好度 25/100
-
Needs Triage
难度 3/5 1-2 天 新手友好度 52/100
-
bug
难度 4/5 3-5 天 新手友好度 45/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
rohitg00/agentmemory#1428 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 86/100
boxlite-ai/boxlite#1729 ·
维护者通常 1 天内回复
-
detectors enhancement good first issue
难度 2/5 1-3 小时 新手友好度 86/100
SM260845/readme-gen#1 ·
-
难度 2/5 1-3 小时 新手友好度 88/100
angular/angularfire#3774 ·
维护者通常 2 天内回复