From dc9f4c75ce1371da4db7fc15a785f61526b6e7d9 Mon Sep 17 00:00:00 2001 From: Eric Lopes Date: Mon, 15 Jun 2020 21:41:15 +0800 Subject: [PATCH] adding warning of insecure SECRET (#232) --- docs/configuration/full_example.md | 4 ++++ docs/configuration/oauth.md | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/docs/configuration/full_example.md b/docs/configuration/full_example.md index 99143aca..cea8eef0 100644 --- a/docs/configuration/full_example.md +++ b/docs/configuration/full_example.md @@ -2,6 +2,10 @@ Here is a full working example with JWT authentication to help get you started. +!!! warning + Notice that **SECRET** should be changed to a strong passphrase. + Insecure passwords may give attackers full access to your database. + ``` py tab="SQLAlchemy" {!./src/full_sqlalchemy.py!} ``` diff --git a/docs/configuration/oauth.md b/docs/configuration/oauth.md index 548d488a..dc18ff70 100644 --- a/docs/configuration/oauth.md +++ b/docs/configuration/oauth.md @@ -162,6 +162,10 @@ app.include_router(google_oauth_router, prefix="/auth/google", tags=["auth"]) ### Full example +!!! warning + Notice that **SECRET** should be changed to a strong passphrase. + Insecure passwords may give attackers full access to your database. + ``` py tab="SQLAlchemy" {!./src/oauth_full_sqlalchemy.py!} ```