labd / django-cognito-jwt

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

validate token error #4

Closed RenderCoder closed 6 years ago

RenderCoder commented 6 years ago

Hi, I try to use this repository in my project. Get an token error in JSONWebTokenAuthentication.authenticate of Django-cognito-jwt.

I am not sure if I write the right thing in setting.py, it is the COGNITO_AUDIENCE is the App client id of Cognito app (web)? Pls tell me how to find the right info, thanks.

RenderCoder commented 6 years ago

I know what is wrong, the request by application need to send the idToken, not the assessToken.