bartekpacia / bartekpacia/flashwise

Migrate to JWT

Open
#5 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Currently we use the very basic auth scheme, [TokenAuthentication](https://www.django-rest-framework.org/api-guide/authentication/#tokenauthentication) (at least that's the name used in Django REST framework).

This has several downsides:
- the token never changes (bad security)
- AuthHandler middleware has to query database for every call

JWT would let us solve these problems.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the current Django REST framework TokenAuthentication configuration and the AuthHandler middleware mentioned in the issue. Trace how tokens are issued and checked, then define the JWT migration boundaries; done means authentication uses JWT and the per-request database lookup is no longer required.

Written by the indexing model from the issue text.

Assessment

Tech stack
django, python
Domain
api, authentication, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.