Skip to content

Commit 26b2439

Browse files
committed
docs: add docs for the AWS_COGNITO_DISABLED parameter
1 parent fcafc51 commit 26b2439

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

docs/config.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ The following key/value pairs are used for configurating the extension:
66

77
| **Config Name** | **Description** |
88
|---------------------------------------|------------------------------------------------------------------------------------------|
9+
| `AWS_COGNITO_DISABLED` | Globally disable auth with Cognito (default=False) |
910
| `AWS_REGION` | Region the user pool was created |
1011
| `AWS_COGNITO_DOMAIN` | The domain name of the user pool |
1112
| `AWS_COGNITO_USER_POOL_ID` | The ID of the user pool |

example/app.py

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class Config:
2929
FLASK_ENV = "TESTING"
3030

3131
# Cognito config
32+
# AWS_COGNITO_DISABLED = True # Can set to turn off auth (e.g. for local testing)
3233
AWS_REGION = environ["AWS_REGION"]
3334
AWS_COGNITO_USER_POOL_ID = environ["AWS_COGNITO_USER_POOL_ID"]
3435
AWS_COGNITO_DOMAIN = environ["AWS_COGNITO_DOMAIN"]

0 commit comments

Comments
 (0)