Skip to content

Commit

Permalink
fix: WIP: Changing SAML settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Hina Shah committed Mar 27, 2024
1 parent bf742ab commit 94ec1b4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
3 changes: 2 additions & 1 deletion appstore/appstore/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@
LOGIN_WHITELIST_URL = "/login_whitelist/"
OIDC_SESSION_MANAGEMENT_ENABLE = True
SAML_URL = "/accounts/saml"
SAML_ACS_URL = "/saml2_auth/acs/"
#SAML_ACS_URL = "/saml2_auth/acs/"
SAML_ACS_URL = "/sso/acs/"
SOCIALACCOUNT_QUERY_EMAIL = ACCOUNT_EMAIL_REQUIRED
SOCIALACCOUNT_STORE_TOKENS = True
SOCIALACCOUNT_PROVIDERS = {
Expand Down
12 changes: 10 additions & 2 deletions appstore/appstore/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,20 @@

urlpatterns = [
path("admin/", admin.site.urls),
path("saml2_auth/", include("django_saml2_auth.urls")),
path("sso/", include("django_saml2_auth.urls")),
path("accounts/saml/", saml2_auth_views.signin),
path(r"accounts/login/", HelxLoginView.as_view(), name="helx_login"),
re_path(r"accounts/login/", HelxLoginView.as_view(), name="helx_login"),
path("accounts/", include("allauth.urls")),
]

# urlpatterns = [
# path("admin/", admin.site.urls),
# path("saml2_auth/", include("django_saml2_auth.urls")),
# path("accounts/saml/", saml2_auth_views.signin),
# path(r"accounts/login/", HelxLoginView.as_view(), name="helx_login"),
# path("accounts/", include("allauth.urls")),
# ]

urlpatterns += [
path("", include("core.urls")),
path("", include("api.urls")),
Expand Down

0 comments on commit 94ec1b4

Please sign in to comment.