fixed support for client_credentials when basic auth
This commit is contained in:
parent
1cc1f1bb8c
commit
e01bffd1dc
|
@ -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=>{
|
||||
|
|
Loading…
Reference in New Issue