nodeSolidServer / nodeSolidServer/node-solid-server
OAuth refresh grant returns 500 internal server error
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- JavaScript
- Estrellas
- 1.8k
- Forks
- 308
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
The openid configuration available at the .well-wknow iri for the NSS identity provider (e.g. https://solid.zwifi.eu/.well-known/openid-configuration) indicates support for the refresh_token grant. However, when issuing a refresh token request that should be valid (see below), the response is Internal Server Error.
curl --location --request POST 'https://solid.zwifi.eu/token' \
--header 'Authorization: Basic <client id:client secret>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=refresh_token' \
--data-urlencode 'refresh_token=<refresh token>'
Steps to reproduce:
- Get a client ID, secret and a refresh token. That may be done by inspecting the dynamic registration of a client when logging in with an app for instance.
- Use the credentials to fill in the request above (client ID and secret should be base64-encoded)
Expected result
A 200 response with a JSON object in the body containing a new, valid access token.
Observed result
An internal error
Should this issue be reported here in the NSS repo, or in https://github.com/solid/oidc-auth-manager ?
NB: This is kind of related to https://github.com/solid/node-solid-server/issues/641
Guía de contribución
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.
Línea de trabajo
Comienza en el endpoint /token y sigue cómo se gestiona el grant refresh_token en este repositorio, utilizando la solicitud curl proporcionada contra el ejemplo de configuración de OpenID. Compara el comportamiento con el issue relacionado y el repositorio oidc-auth-manager; la tarea está terminada cuando una solicitud válida devuelve HTTP 200 con un nuevo objeto JSON de access token en lugar de un error interno.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript, node.js
- Área
- api, authentication, backend
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 38/100