mcueto / djangorestframework-auth0

Library to simply use Auth0 token authentication in DRF within djangorestframework-jwt
MIT License
91 stars 19 forks source link

Feature/multiple clients #27

Closed Calion54 closed 7 years ago

Calion54 commented 7 years ago

Hi,

This is the good version. I added the ability to customize the field name (Default: Client-Code) It is no longer required to specify the client-code when there is no need for authentication

mcueto commented 7 years ago

I was thinking that we could provide a DEFAULT client option in the settings so if Client-Code doesn't exists in the request we could try to decode the JWT code with this parameters (just like any other Django app manage a DEFAULT).

Calion54 commented 7 years ago

If I understand correctly, it means putting a client (for example: web) in the configuration. If the Client-Code field is not filled in, will it be found by default?