Support separate URLs for server/client side connection to Kratos
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Stack tecnológico
- next.js, typescript
- Área
- authentication, full-stack
Línea de trabajo
Comienza inspeccionando la configuración de @ory/nextjs y cada uso de ORY_SDK_URL; después, sigue cómo están configuradas las solicitudes del servidor y las redirecciones del navegador. La tarea estará terminada cuando el servidor pueda usar una URL interna de Kratos mientras el navegador use la URL pública para los endpoints de autoservicio, sin redirigir a la dirección interna.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- TypeScript
- Estrellas
- 187
- Forks
- 80
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ory/elements
-
Needs Triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
good first issue help wanted upstream
Dificultad 2/5 1-3 horas Aptitud para principiantes 45/100
-
good first issue help wanted upstream
Dificultad 3/5 1-2 días Aptitud para principiantes 25/100
-
Add React-only examplesAbiertoNeeds Triage
Dificultad 3/5 1-2 días Aptitud para principiantes 52/100
-
guessPotentiallyProxiedOrySdkUrl breaks flows in production behind a non-Vercel reverse proxyAbiertobug
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
Todos los issues de ory/elements
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
melgarafael/DeskcommCRM#1812 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
prisma/prisma-cli#309 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
gregwebs/pi-quota-dispatcher#26 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
openwatersio/slackwater.xyz#124 ·
Los mantenedores suelen responder en 1 día
-
agent-reported area/browser area/docs documentation good first issue hacktoberfest help wanted P2
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
Los mantenedores suelen responder en 2 días