Skip to content

Commit

Permalink
feat: Added session authentication to access the API's through Swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
zamanafzal committed Jan 24, 2024
1 parent 31a4ccf commit d3a85e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions license_manager/apps/api/v1/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ class BaseLicenseViewSet(PermissionRequiredForListingMixin, viewsets.ReadOnlyMod
would return the license associated with the requesting user in plan 504b1735-9d3a-4000-848d-6ae7a56e6350.
"""
authentication_classes = [JwtAuthentication]
authentication_classes = [JwtAuthentication, SessionAuthentication]
permission_classes = [permissions.IsAuthenticated]

filter_backends = [DjangoFilterBackend, filters.OrderingFilter, filters.SearchFilter]
Expand Down Expand Up @@ -1151,7 +1151,7 @@ class LicenseBaseView(UserDetailsFromJwtMixin, APIView):
that deal with licenses.
"""
permission_classes = [permissions.IsAuthenticated]
authentication_classes = [JwtAuthentication]
authentication_classes = [JwtAuthentication, SessionAuthentication]


class EnterpriseEnrollmentWithLicenseSubsidyView(LicenseBaseView):
Expand Down

0 comments on commit d3a85e4

Please sign in to comment.