JWT Authentication between services running in Kubernetes cluster

5/2/2019

I am using jwt authentication between two services written in django. The authentication is working on local machine. But when I run the same services in a kubernetes cluster, I get authentication error.

Also, when I make the decorator above the api to @permission_classes([AllowAny, ]) in order to avoid any authentication check but still pass the token in the header, I get the unauthorization error 401 in Kubernetes cluster.

Does anyone have any idea on how to do jwt authentication between two django services running in a kubernetes cluster in django?

-- skywalker007
django-rest-framework
kubernetes

0 Answers