Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Commit

Permalink
Merge pull request #8 from Menda/7-readme-secrets
Browse files Browse the repository at this point in the history
Closes #7 - Warn about not hardcoding secrets in README
  • Loading branch information
jefmoura authored Jul 5, 2018
2 parents b3e199d + d01b869 commit 163526f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ AUTHENTICATION_BACKENDS = (

Now we need to set up a `JWT_ISSUER` variable in our config, which will be the
name of the issuer. Also you will create a RSA private key for it and will
store it in a `JWT_PRIVATE_KEY_RSA_<JWT_ISSUER>` variable. For example:
store it in a `JWT_PRIVATE_KEY_RSA_<JWT_ISSUER>` variable \*. For example:


```
Expand All @@ -92,6 +92,10 @@ MIIBOAIBAAJAbCmbRUsLrsv0/Cq7DVDpUooPS1V2sr0EhTZAZmJhid2o/+ya/28m
"""
```

\* *Note that storing hardcoded secrets in the settings is a bad practice and
can lead to severe security breaches in your code. We recommend using
environment variables for this purpose.*

The payload of messages will be by default something like:

```
Expand Down

0 comments on commit 163526f

Please sign in to comment.