fixed support for client_credentials when basic auth

This commit is contained in:
Marco Lettere 2021-12-14 15:14:43 +01:00
parent 1cc1f1bb8c
commit e01bffd1dc
1 changed files with 1 additions and 1 deletions

View File

@ -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=>{