Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#1338 | removed dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Oct 7, 2022
1 parent 7f2a5d3 commit ab766b8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion core/users/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
re_path(r'^$', views.UserListView.as_view(), name='userprofile-list'),
path('api-token/', views.TokenExchangeView.as_view(), name='user-oid-django-token-exchange'),
path('oidc/code-exchange/', views.OIDCodeExchangeView.as_view(), name='user-oid-code-exchange'),
path('oidc/logout/', views.UserOIDLogoutView.as_view(), name='user-logout'),
path('login/', views.TokenAuthenticationView.as_view(), name='user-login'),
path('signup/', views.UserSignup.as_view(), name='user-signup'),
re_path(
Expand Down
9 changes: 0 additions & 9 deletions core/users/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,6 @@ class OCLOIDCAuthenticationCallbackView(OIDCAuthenticationCallbackView):
pass


class UserOIDLogoutView(APIView):
def post(self, _):
if self.request.user.is_authenticated:
token = self.request.META['HTTP_AUTHORIZATION']
if token:
AuthService.get().logout(token)
return Response(status=status.HTTP_204_NO_CONTENT)


class OIDCodeExchangeView(APIView):
permission_classes = (AllowAny, )

Expand Down

0 comments on commit ab766b8

Please sign in to comment.