An alias needs to be created in the baas, using the following command:
sb-cli baas create baas.json
baas.json file looks like this:
{
"Alias": "secureSessionApi",
"Body": {},
"Endpoint": "http://www.validationEndpoint.com", // Point to your validation endpoint
"Headers": {
"Authorization": "${token}" // Will append the token to the Authorization header
},
"Method": "POST",
"RequestMapping": {
"token": {
"inputPath": "$.token",
"requestParameter": "token",
"type": "requestHeader"
}
},
"ResponseMapping": {}
}