Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and dopry committed Nov 11, 2023
1 parent cc000a4 commit 9e98388
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ _build

db.sqlite3
venv/

/tests/app/idp/static

/tests/app/idp/static
28 changes: 15 additions & 13 deletions tests/app/idp/idp/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
https://docs.djangoproject.com/en/4.2/ref/settings/
"""

import environ
import os
from pathlib import Path

import environ


# Build paths inside the project like this: BASE_DIR / 'subdir'.
Expand All @@ -26,7 +26,9 @@
SECRET_KEY=(str, "django-insecure-vri27@j_q62e2it4$xiy9ca!7@qgjkhhan(*zs&lz0k@yukbb3"),
OAUTH2_PROVIDER_OIDC_ENABLED=(bool, True),
OAUTH2_PROVIDER_OIDC_RP_INITIATED_LOGOUT_ENABLED=(bool, True),
OAUTH2_PROVIDER_OIDC_RSA_PRIVATE_KEY=(str, """
OAUTH2_PROVIDER_OIDC_RSA_PRIVATE_KEY=(
str,
"""
-----BEGIN RSA PRIVATE KEY-----
MIIJKAIBAAKCAgEAtd8X/v8pddKt+opMJZrhV4FH86gBTMPjTGXeAfKkQVf7KDUZ
Ty90n+JMe2rvCUn+Nws9yy5vmtbkomQbj8Xs1kHJOVdCnH1L2HTkvM7BjTBmJ5vc
Expand Down Expand Up @@ -78,26 +80,26 @@
dBCCnF8FP1yPW8UgGVGSeozmIMaJwSpl2srZUMkN1KlqHwzehrOn9Tn2grA9ue/i
ipUMvb4Se0LDJnmFuv8v6gM6V4vyXkP855mNOiRHUOHOSKdQ3SeKrLlnR6I=
-----END RSA PRIVATE KEY-----
"""),
OAUTH2_PROVIDER_SCOPES=(dict, {"openid": "OpenID Connect scope" }),
OAUTH2_PROVIDER_ALLOWED_SCHEMES=(list, ["https", "http"]),
OAUTHLIB_INSECURE_TRANSPORT=(bool, "1"),
STATIC_ROOT=(str, BASE_DIR / "static"),
STATIC_URL=(str, "static/"),
TEMPLATES_DIRS=(list, [BASE_DIR / "templates"]),

""",
),
OAUTH2_PROVIDER_SCOPES=(dict, {"openid": "OpenID Connect scope"}),
OAUTH2_PROVIDER_ALLOWED_SCHEMES=(list, ["https", "http"]),
OAUTHLIB_INSECURE_TRANSPORT=(bool, "1"),
STATIC_ROOT=(str, BASE_DIR / "static"),
STATIC_URL=(str, "static/"),
TEMPLATES_DIRS=(list, [BASE_DIR / "templates"]),
)

# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/4.2/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = env('SECRET_KEY')
SECRET_KEY = env("SECRET_KEY")

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = env('DEBUG')
DEBUG = env("DEBUG")

ALLOWED_HOSTS = env('ALLOWED_HOSTS')
ALLOWED_HOSTS = env("ALLOWED_HOSTS")


# Application definition
Expand Down

0 comments on commit 9e98388

Please sign in to comment.