labd / django-cognito-jwt

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

Can i add Multiple Clients/Audience Id in django settings.py #25

Open the-pythonistaa opened 4 years ago

the-pythonistaa commented 4 years ago

hi we need to allow various requests from ui like mobile, website, etc, and i need to set multiple

COGNITO_AUDIENCE ='xxxxxxxxxxxxxxxxxxx'

in settings,

skison commented 4 years ago

I tried it myself, and was surprised to see that it actually does allow that. You just need to do COGNITO_AUDIENCE = ['<key 1>', '<key 2>', ...].