Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Updating native registration flow with OIDC ID token for existing identity returns breaking response

Abierto
#447 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
openapi, swift

Línea de trabajo

Comienza revisando las operaciones de API Update Registration Flow y Create Registration Flow para Native Apps enlazadas en el informe y, después, compara sus esquemas de éxito documentados con la respuesta de OIDC para una identidad existente descrita. No se indica ningún archivo del repositorio ni ninguna prueba, así que sigue la especificación de la API y el procesamiento de la respuesta; se considera terminado cuando el contrato documentado y el análisis sintáctico del cliente generado coinciden tanto para los resultados de registro como para los de inicio de sesión.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug
Preflight checklist
Ory Network Project

https://vigorous-leakey-ouzelmh6hd.projects.oryapis.com

Describe the bug

When updating a native registration flow (POST /self-service/registration) the identity property of the successful response is marked as required in the Open API specification. That property contains details about the new identity that was created.

However, when updating the registration flow with an ID token received from an OIDC provider and Ory finds an existing identity based on the subject in the token, then a login on that identity is performed instead. When that happens, the response format instead looks like the successful response from Submit a Login Flow (POST /self-service/login). In that response there is no identity property.

When using an auto generated client, the parsing of the response might fail since the identity is required and the caller does't know the registration ended up in a login. I would expect differences between how this is handled by clients in different programming languages, but in a strictly typed language like Swift this becomes a breaking error.

Reproducing the bug
  1. Create an identity using any OIDC provider
  2. Start a registration flow by calling Create Registration Flow for Native Apps
  3. Authenticate to receive an ID token from the same provider used in step 1.
  4. Complete registration with the ID token by calling Update Registration Flow

Expected 200 response:
A JSON object containing the required identity property at root level.

Actual 200 response:
A JSON object without the required identity property at root level. The identity is however included in the session property.

Relevant log output

Relevant configuration

Version

Ory Network

On which operating system are you observing this issue?

Ory Network

In which environment are you deploying?

Ory Network

Additional Context

No response

Lenguaje dominante
Shell
Estrellas
96
Forks
8
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ory/network

Todos los issues de ory/network

Issues similares

Más issues de Shell/Bash

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.