This repository has been archived by the owner on Dec 6, 2024. It is now read-only.
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.
Make JWT algorithm configurable #12
Closed
Description
Purpose
Currently django-oauth-toolkit-jwt library supports only "RS256" algorithm for the encode and decode functions and it is hard-coded. To be more flexible we want to make encoding algorithm configurable and encode and decode functionas will get algorithm type from main project settings. We are using pyjwt as a core library and it supports algorithms below;
HS256
HS384
HS512
RS256
RS384
RS512
ES256
ES384
ES521
ES512
PS256
PS384
We should set 'RS256' as a default algortihm.
Acceptance Criteria
GIVEN I am a developer
WHEN I have defined JWT_ALGORITHM
in my project settings
THEN the JWT is generated with the defined algorithm
GIVEN I am a developer
WHEN I have not defined JWT_ALGORITHM
in my project settings
THEN the JWT is generated with 'RS256' algorithm
Metadata
Assignees
Labels
No labels