I have a collection shared with a team. That collection contains multiple environments and every environment has a set of variables. From those variables there are two variables email and password where I would like to define them differently according to the user.
The reason why I need this is that I run a script to fetch the user token before every request and that is done on the collection level in pre-request script.
pm.sendRequest({
url: pm.environment.get("host") + '/api/token',
method: 'POST',
header: {
'content-type': 'application/json',
'Authorization': 'Basic ' + btoa(pm.environment.get("email") + ':' + pm.environment.get("password"))
},
body: {
}
}, function (err, res) {
pm.environment.set("authToken", res.json().token);
});
As you can see here email and password are read from environment variables where every team member have different email and password. What is the best way to load this info and keeping the password secure from the rest of the team?