graphql-python / graphql-python/graphene

401 status code for token authentication

Abierto
#1,269 4 comentarios 8 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
8.2k
Forks
818
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

I think in the case of token authentication, it would make sense to be able to return a 401, **even if** only one field errors out this way (referring to the example given in the original post). This status code is necessary to make this library compatible with authMiddleware in [React Relay Network Modern](https://github.com/relay-tools/react-relay-network-modern), which expects a 401 status code to refresh tokens.

_Originally posted by @berkcoker in https://github.com/graphql-python/graphene/issues/946#issuecomment-698617718_

Guía de contribución

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

Línea de trabajo

Start by reading the linked original issue and the React Relay Network Modern authMiddleware requirement. Trace the token-authentication error path in Graphene to determine how a 401 could apply when one field errors. Done means the behavior is implemented with regression coverage and remains compatible with normal GraphQL error responses.

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

Evaluación

Stack tecnológico
graphql, python
Área
api, authentication
Tipo de issue
Nueva funcionalidad
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
30/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.