diff --git a/roles/pep/templates/pep.js.j2 b/roles/pep/templates/pep.js.j2 index a4a9026..efb896b 100644 --- a/roles/pep/templates/pep.js.j2 +++ b/roles/pep/templates/pep.js.j2 @@ -153,7 +153,7 @@ function verifyToken(context){ function requestToken(context){ log(context, "Inside requestToken") var options = { - "body" : "grant_type=password&username="+context.authn.user+"&password="+context.authn.password + "body" : "grant_type=client_credentials&client_id="+context.authn.user+"&client_secret="+context.authn.password } return context.request.subrequest("/jwt_request", options) .then(reply=>{