Skip to content

Commit

Permalink
fix UT
Browse files Browse the repository at this point in the history
  • Loading branch information
odkhang committed Oct 23, 2024
1 parent bfee7ec commit 15d8223
Show file tree
Hide file tree
Showing 11 changed files with 1 addition and 451 deletions.
13 changes: 1 addition & 12 deletions src/pretalx/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@
"pretalx.agenda",
"pretalx.cfp",
"pretalx.orga",
"pretalx.sso_provider",
"pretalx.eventyay_common",
]
FALLBACK_APPS = [
Expand Down Expand Up @@ -555,7 +554,7 @@ def merge_csp(*options, config=None):
"DIRS": [
DATA_DIR / "templates",
BASE_DIR / "templates",
BASE_DIR / "pretalx" / "sso_provider" / "templates",
BASE_DIR / "pretalx" / "templates",
],
"OPTIONS": {
"context_processors": [
Expand Down Expand Up @@ -687,8 +686,6 @@ def merge_csp(*options, config=None):
plugins=PLUGINS,
)

# Below is configuration for SSO using eventyay-ticket

EVENTYAY_TICKET_BASE_PATH = config.get(
"urls", "eventyay-ticket", fallback="https://app-test.eventyay.com/tickets"
)
Expand All @@ -700,15 +697,7 @@ def merge_csp(*options, config=None):
ACCOUNT_USER_MODEL_USERNAME_FIELD = "name"
# redirect to home page after login with eventyay-ticket
LOGIN_REDIRECT_URL = BASE_PATH
# custom form for signup and adapter
SOCIALACCOUNT_FORMS = {"signup": "pretalx.sso_provider.forms.CustomSignUpForm"}
SOCIALACCOUNT_ADAPTER = "pretalx.sso_provider.views.CustomSocialAccountAdapter"
# disable confirm step when using eventyay-ticket to login
SOCIALACCOUNT_LOGIN_ON_GET = True
# eventyay-ticket provider configuration
EVENTYAY_TICKET_SSO_WELL_KNOW_URL = "/".join(
[EVENTYAY_TICKET_BASE_PATH, "{org}", ".well-known/openid-configuration"]
)
# redirect_url as https
ACCOUNT_DEFAULT_HTTP_PROTOCOL = "https"

Expand Down
Empty file.
12 changes: 0 additions & 12 deletions src/pretalx/sso_provider/apps.py

This file was deleted.

7 changes: 0 additions & 7 deletions src/pretalx/sso_provider/forms.py

This file was deleted.

98 changes: 0 additions & 98 deletions src/pretalx/sso_provider/providers.py

This file was deleted.

This file was deleted.

163 changes: 0 additions & 163 deletions src/pretalx/sso_provider/templates/socialaccount/base.html

This file was deleted.

39 changes: 0 additions & 39 deletions src/pretalx/sso_provider/templates/socialaccount/signup.html

This file was deleted.

5 changes: 0 additions & 5 deletions src/pretalx/sso_provider/urls.py

This file was deleted.

Loading

0 comments on commit 15d8223

Please sign in to comment.