oscarychen / django-ninja-simple-jwt

Simple and elegant stateless JWT-based authentication built for django-ninja
MIT License
25 stars 3 forks source link

Environment Variable Support for JWT Keys #15

Open positiveblue opened 4 months ago

positiveblue commented 4 months ago

Thanks for creating this library - it's pretty useful!

The support for customizing JWT key storage through storage implementations works well for cloud storage scenarios like S3. However, I'm wondering if there are any drawbacks to also supporting direct reading of JWT keys from environment variables.

This would simplify setup for:

  1. Containerized deployments
  2. Integration with secret management systems
  3. Development environments

Are there specific reasons this approach wasn't included?

oscarychen commented 4 months ago

it's on my todo