graphql-python / graphql-python/graphene
401 status code for token authentication
- Langage dominant
- Python
- Étoiles
- 8.2k
- Forks
- 818
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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_
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Commencez par lire l’issue originale liée et l’exigence authMiddleware de React Relay Network Modern. Suivez le chemin d’erreur de l’authentification par token dans Graphene afin de déterminer comment un 401 pourrait s’appliquer lorsqu’un champ génère une erreur. Le travail est considéré comme terminé lorsque le comportement est implémenté avec une couverture de régression et reste compatible avec les réponses d’erreur GraphQL normales.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- graphql, python
- Domaine
- api, authentication
- Type d'issue
- Fonctionnalité
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 30/100