labd / django-cognito-jwt

An Authentication backend for Django Rest Framework for AWS Cognito JWT tokens
MIT License
177 stars 59 forks source link

Added Exception Handeling On Cognito Validation Request #43

Open dcostersabin opened 1 year ago

dcostersabin commented 1 year ago

Fix Connection Error

Exception is not being handled when requesting .well-known/jwks.json which makes django server return status code 500. I believe authentication backends should be robust and should handle these sort of issue and flag the incoming request as unauthorized.