openoakland / woeip

A platform for impacted communities to understand their local air quality and advocate for environmental justice.
https://woaq.org
MIT License
29 stars 16 forks source link

Upgrade Authentication Token method to JWT #445

Open TangoYankee opened 2 years ago

TangoYankee commented 2 years ago

Is your feature request related to a problem? Please describe.
We are currently using Basic Auth Tokens as a first iteration. However, JWTs provide a more robust solution

Describe the solution you'd like Implement JWT Authentication. Manage tokens and refresh tokens

Describe alternatives you've considered Keeping basic auth tokens

Additional context Basic Auth Tokens provides a foundation on which to iterate and implement JWT. However, the API is proving to be limited- including poor feedback on user sign out. (With the current Basic Auth module, it provides a success message regardless of whether the logout was truly successful)

Labels

For Developers

Affected Components
Django Settings and modules- possibly a model update

Technical Resources django rest framework auth dj-rest-auth