django-cognito-jwt
django-cognito-jwt copied to clipboard
An Authentication backend for Django Rest Framework for AWS Cognito JWT tokens
Could you add an example authentication flow to the README? That would be helpful, to see how this authentication works from the client.
I am getting the following error (Presumable after token is Expired): `WrappedAttributeError at /api/ module 'jwt' has no attribute 'ExpiredSignature'` The package was working perfectly for 2-3 months but this...
Cognito access tokens are lacking the `aud` field (cf https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-using-tokens-with-identity-providers.html#amazon-cognito-user-pools-using-the-access-token) making their decoding impossible/invalid with this library since the audience is provided & expected at the decoding step: https://github.com/labd/django-cognito-jwt/blob/master/src/django_cognito_jwt/validator.py#L64. Would...
ImportError: Could not import 'django_cognito_jwt.JSONWebTokenAuthentication' for API setting 'DEFAULT_AUTHENTICATION_CLASSES'. ImportError: cannot import name 'RSAAlgorithm'. Just started getting this a few days ago, wondering if anyone else has experienced the same...
Hi, Under normal load, the library works fine but when load increases I start to get below error ``` File "/usr/local/lib/python3.8/site-packages/django_cognito_jwt/validator.py", line 30, in _json_web_keys response = requests.get(self.pool_url + "/.well-known/jwks.json")...
See https://aws.amazon.com/blogs/aws/built-in-authentication-in-alb/ ```Now, when I navigate to an authenticated page my Fargate containers receive the originating request with the X-Amzn-Oidc-* headers set by ALB. Using the information in those headers...
As described here: https://github.com/labd/django-cognito-jwt/issues/22 The AccessToken validation is currently broken because the library is mandatorily checking the audience (aud) claim, which is not included in the AccessToken payload. These few...
See https://github.com/conda-forge/staged-recipes/pull/11685 for details
Hi, is it possible to make Cognito Audience setting as optional?