Commit c2fb895d authored by John Red Medrano's avatar John Red Medrano

removed checking permission at utils

parent a1c58766
......@@ -102,10 +102,10 @@ class Helper:
'Authorization': request.META['HTTP_AUTHORIZATION'],
'Content-Type': 'application/json',
"endpoint": str(endpoint.id)
# "user": str(endpoint.name),
}
req = requests.post(VALIDATE_TOKEN_URL,
headers=self._headers)
print(req)
all_headers = {**req.headers, **self._headers}
if req.status_code == 200:
......
......@@ -68,6 +68,10 @@ class ApplicationViewSet(viewsets.ModelViewSet):
results = []
for item in serializer.data:
ids = item['id']
# headers = {
# 'content-type': 'application/json',
# 'Authorization': request.META['HTTP_AUTHORIZATION']
# }
req = requests.get(f'{AUTHENTICATOR_GROUP}/{ids}/')
groups = req.json()['groups']
modules = req.json()['modules']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment