Skip to content

Commit 71d129c

Browse files
tyrazielzkayyali812
authored andcommitted
Enabling service tokens for authenticator and authenticator map views.
1 parent f1ec423 commit 71d129c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

ansible_base/authentication/views/authenticator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class AuthenticatorViewSet(AnsibleBaseDjangoAppApiView, ModelViewSet):
1818

1919
queryset = Authenticator.objects.all()
2020
serializer_class = AuthenticatorSerializer
21+
allow_service_token = True
2122

2223
def get_serializer(self, *args, **kwargs):
2324
# Return an instanced serializer if one exists for OPTIONS requests.

ansible_base/authentication/views/authenticator_map.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ class AuthenticatorMapViewSet(AnsibleBaseDjangoAppApiView, ModelViewSet):
1212

1313
queryset = AuthenticatorMap.objects.all().order_by("id")
1414
serializer_class = AuthenticatorMapSerializer
15+
allow_service_token = True

0 commit comments

Comments
 (0)