reading-notes

Authentication & Production Server

SOURCES

VIDEOS

JWT with DRF

ARTICLES

JSON Web Tokens DRF JWT Authentication Django Runserver Is Not Your Production Server

NOTES

For example if you want to use the HMAC SHA256 algorithm, the signature will be created in the following way:

-``` 
HMACSHA256(
base64UrlEncode(header) + "." +
base64UrlEncode(payload),
secret)
```

The signature is used to verify the message wasn’t changed along the way, and, in the case of tokens signed with a private key, it can also verify that the sender of the JWT is who it says it is.