Skip to content

Commit

Permalink
fix black test
Browse files Browse the repository at this point in the history
  • Loading branch information
odkhang committed Sep 10, 2024
1 parent bc7c750 commit 8d1b9fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pretalx/eventyay_common/views/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@


# Set the OAUTHLIB_INSECURE_TRANSPORT environment variable based on the setting
os.environ["OAUTHLIB_INSECURE_TRANSPORT"] = "1" if settings.OAUTHLIB_INSECURE_TRANSPORT else "0"
os.environ["OAUTHLIB_INSECURE_TRANSPORT"] = (
"1" if settings.OAUTHLIB_INSECURE_TRANSPORT else "0"
)


def oauth2_login_view(request, *args, **kwargs):
Expand Down
2 changes: 2 additions & 0 deletions src/pretalx/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,8 @@ def merge_csp(*options, config=None):
OAUTH2_PROVIDER_CLIENT_MODEL = "oauth2_provider.Application"
OAUTH2_PROVIDER_ID_TOKEN_MODEL = "oauth2_provider.IDToken"
SSO_USER_INFO = "/".join([EVENTYAY_TICKET_BASE_PATH, "control/oauth2/user_info/"])
# Disable this if you are not using HTTPS
OAUTHLIB_INSECURE_TRANSPORT = True

LOGOUT_REDIRECT_URL = "/"
LOGIN_URL = "/login/"
Expand Down

0 comments on commit 8d1b9fe

Please sign in to comment.