Skip to content

Commit

Permalink
Support setup in zappa
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikhorluck committed Feb 24, 2024
1 parent eb50c30 commit 98b0997
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions onlineweb4/settings/zappa.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,18 @@
SESSION_COOKIE_SAMESITE = None
ADMINS = (("dotKom", "[email protected]"),)

AUTH0_DOMAIN = env["AUTH0_ISSUER"]
AUTH0_CLIENT_ID = env["AUTH0_CLIENT_ID"]
AUTH0_CLIENT_SECRET = env["AUTH0_CLIENT_SECRET"]

# this OIDC is for non-API-auth
OIDC_OP_JWKS_ENDPOINT = f"{AUTH0_DOMAIN}/.well-known/jwks.json"
OIDC_RP_CLIENT_ID = AUTH0_CLIENT_ID
OIDC_RP_CLIENT_SECRET = AUTH0_CLIENT_SECRET
OIDC_OP_AUTHORIZATION_ENDPOINT = f"{AUTH0_DOMAIN}/authorize"
OIDC_OP_TOKEN_ENDPOINT = f"{AUTH0_DOMAIN}/oauth/token"
OIDC_OP_USER_ENDPOINT = f"{AUTH0_DOMAIN}/userinfo"


# Override "spam-settings" for django-wiki
WIKI_REVISIONS_PER_HOUR = 1000
Expand Down

0 comments on commit 98b0997

Please sign in to comment.