fix(): remove escaped newlines when reading cetificates for JWT signing and verification (#77)

* fix(): remove escaped newlines when reading cetificates for JWT signing and verification

* fix(): updating dev credentials in README
This commit is contained in:
Drew Kerrigan
2024-11-07 12:13:51 -05:00
committed by GitHub
parent 0271fe5ca0
commit d8d831c2a0
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -201,7 +201,7 @@ poetry shell
python manage.py loaddata api/fixtures/0_dev_users.json --database admin
```
> The default credentials are `prowler_dev:thisisapassword123`
> The default credentials are `dev@prowler.com:thisisapassword123` or `dev2@prowler.com:thisisapassword123`
## Run tests
+2 -2
View File
@@ -154,8 +154,8 @@ SIMPLE_JWT = {
"BLACKLIST_AFTER_ROTATION": True,
# Algorithm and keys
"ALGORITHM": "RS256",
"SIGNING_KEY": env.str("DJANGO_TOKEN_SIGNING_KEY", ""),
"VERIFYING_KEY": env.str("DJANGO_TOKEN_VERIFYING_KEY", ""),
"SIGNING_KEY": env.str("DJANGO_TOKEN_SIGNING_KEY", "").replace("\\n", "\n"),
"VERIFYING_KEY": env.str("DJANGO_TOKEN_VERIFYING_KEY", "").replace("\\n", "\n"),
# Authorization header configuration
"AUTH_HEADER_TYPES": ("Bearer",),
"AUTH_HEADER_NAME": "HTTP_AUTHORIZATION",