Skip to content

Commit 713c311

Browse files
committed
remove redundant endpoints
1 parent 56f835c commit 713c311

File tree

3 files changed

+0
-87
lines changed

3 files changed

+0
-87
lines changed

data_management/rest/views.py

-20
Original file line numberDiff line numberDiff line change
@@ -660,26 +660,6 @@ class CodeRunViewSet(BaseViewSet, mixins.UpdateModelMixin, mixins.DestroyModelMi
660660
globals()[name + "ViewSet"] = type(name + "ViewSet", (BaseViewSet,), data)
661661

662662

663-
def auth_provider(request):
664-
"""Returns Auth Provider in Json Format"""
665-
_data = {"auth_provider": conf_settings.AUTH_METHOD}
666-
return JsonResponse(_data)
667-
668-
669-
def auth_url(request):
670-
"""Returns Auth Provider URL in Json Format"""
671-
auth_url = None
672-
if hasattr(conf_settings, "SOCIAL_AUTH_GITLAB_API_URL"):
673-
if conf_settings.SOCIAL_AUTH_GITLAB_API_URL:
674-
auth_url = conf_settings.SOCIAL_AUTH_GITLAB_API_URL
675-
if conf_settings.AUTH_METHOD == "GitLab" and not auth_url:
676-
auth_url = "https://gitlab.com"
677-
if conf_settings.AUTH_METHOD == "GitHub" and not auth_url:
678-
auth_url = "https://github.com"
679-
_data = {"auth_url": auth_url}
680-
return JsonResponse(_data)
681-
682-
683663
class UserView(views.APIView):
684664
"""
685665
API view allowing users to upload data to object storage

data_management/tests/test_custom_urls.py

-65
This file was deleted.

data_management/urls.py

-2
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@
7474
path("data/<str:name>", views.get_data),
7575
path("api/data/<str:checksum>", api_views.ObjectStorageView.as_view()),
7676
path("api/data", api_views.ObjectStorageView.as_view()),
77-
path("api/auth-provider/", api_views.auth_provider, name="auth-provider"),
78-
path("api/auth-url/", api_views.auth_url, name="auth-url"),
7977
path("api/username/", api_views.UserView.as_view(), name="username"),
8078
path("api/logout", views.logout),
8179
path("logout", views.logout),

0 commit comments

Comments
 (0)