labd / django-cognito-jwt

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

Update tests and documentation to show that multiple audiences are supported #28

Open skison opened 4 years ago

skison commented 4 years ago

One of the issues that seems to have popped up a few times here is that there is no clear way to support multiple audiences with the TokenValidator. This can be a problem when you have a User Pool with more than one client id, which is common for projects that have a REST API for external use.

I had intended to write a new feature branch that would allow for the support of multiple audiences, but as it turns out, there already is support, it's just not documented. So I've added a couple of comments and tests to make it more clear that this is the case.