Skip to content

Commit

Permalink
docs: add docs for the AWS_COGNITO_DISABLED parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
mblackgeo committed May 6, 2022
1 parent fcafc51 commit 26b2439
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ The following key/value pairs are used for configurating the extension:

| **Config Name** | **Description** |
|---------------------------------------|------------------------------------------------------------------------------------------|
| `AWS_COGNITO_DISABLED` | Globally disable auth with Cognito (default=False) |
| `AWS_REGION` | Region the user pool was created |
| `AWS_COGNITO_DOMAIN` | The domain name of the user pool |
| `AWS_COGNITO_USER_POOL_ID` | The ID of the user pool |
Expand Down
1 change: 1 addition & 0 deletions example/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class Config:
FLASK_ENV = "TESTING"

# Cognito config
# AWS_COGNITO_DISABLED = True # Can set to turn off auth (e.g. for local testing)
AWS_REGION = environ["AWS_REGION"]
AWS_COGNITO_USER_POOL_ID = environ["AWS_COGNITO_USER_POOL_ID"]
AWS_COGNITO_DOMAIN = environ["AWS_COGNITO_DOMAIN"]
Expand Down

0 comments on commit 26b2439

Please sign in to comment.