Compaction with mandated context incompatible with OIDC

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

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
48/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado

Línea de trabajo

Empieza con el contexto JSON-LD obligatorio enlazado en el issue y el ejemplo de Client ID Document de la sección 5.1. Reproduce el resultado de expand-and-compact en el JSON-LD Playground y, a continuación, verifica que el contexto produce una sintaxis de redirect_uris compatible con OIDC Dynamic Registration.

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

Descripción

While experimenting in the JSON-LD Playground, I stumbled upon the following issue, which I could only solve by diverting from the mandated JSON-LD context.

Starting from the example Client ID Document in 5.1, when expanding with the context and then compacting the result again, the "redirect_uris": ["https://app.example/callback"] statement becomes:

"redirect_uris": {
    "@none": [
        "https://app.example/callback"
    ]
}

This is obviously not what we want, in order to be compatible with OIDC Dynamic Registration syntax. It is due to redirect_uris being configured as a JSON-LD ID Map in the context, as follows.

"redirect_uris": {
    "@id": "oidc:redirect_uris",
    "@type": "@id",
    "@container": [
        "@id",
        "@set"
    ]
}

That data structure is meant for maps, both the key and the value of which are (named) nodes. A set of redirect URIs, however, is just a set of nodes, not a map. I therefore believe the @id annotation of @container should be removed, leaving just "@container": "@set", which results in the correct expansion.

Lenguaje dominante
Bikeshed
Estrellas
26
Forks
14
Métricas de merge de PR
Sin PR fusionados en 30 d

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

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 solid/solid-oidc

Todos los issues de solid/solid-oidc

Issues similares

Más issues de Security

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.