exports.authorizePassword = function(auth) {
return function(_ref2) {
var authActions = _ref2.authActions,
schema = auth.schema,
name = auth.name,
username = auth.username,
password = auth.password,
passwordType = auth.passwordType,
clientId = auth.clientId,
clientSecret = auth.clientSecret,
form = {
grant_type: "password",
scope: auth.scopes.join(" ")
}, query = {}, headers = {};
return "basic" === passwordType ? headers.Authorization = "Basic " + (0, _utils.btoa)(username + ":" + password) : ((0, _assign2.
default)(form, {
username: username
}, {
password: password
}), "query" === passwordType ? (clientId && (query.client_id = clientId), clientSecret && (query.client_secret = clientSecret)) : headers.Authorization = "Basic " + (0, _utils.btoa)(clientId + ":" + clientSecret)), authActions.authorizeRequest({
body: (0, _utils.buildFormData)(form),
url: schema.get("tokenUrl"),
name: name,
headers: headers,
query: query,
auth: auth
})
}
This is my code and checkmarx gives error near this line return "basic" === passwordType says use of hard coded password. There's no hardcoded password anywhere. Please help