Replies: 1 comment
-
hi @meglenast 👋 the values under You should be able to set the default with a custom function setDefaultAuthHeader(req, vuContext, events, next) {
if (typeof req.auth === 'undefined') {
req.headers = req.headers || {};
req.headers['Authorization'] = `Bearer ${process.env.TOKEN}`; // read token from environment variable
}
return next();
} More info on |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, is it possible to have authentication both in the config section and in the scenarios section. I can't find a similar example to what I'm trying to achieve documented. So far I'm doing the following, which doesn't seem to work.
With other words I want to specify some of the request to use the specified authentication schema in the scenario section and for the unspecified request the default authentication method form the cofig section to be used. Is this possible to be done in any way?
Beta Was this translation helpful? Give feedback.
All reactions