labd / django-cognito-jwt

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

Cognito Audience Optional #23

Open pratibhajagnere opened 4 years ago

pratibhajagnere commented 4 years ago

Hi,

is it possible to make Cognito Audience setting as optional?

skison commented 4 years ago

From what I can tell, the audience is explicitly required for this method of authentication, but it seems to be possible to support multiple audiences by doing: COGNITO_AUDIENCE = ['<key 1>', '<key 2>', ...]