I am using hapi-swaggered/hapi-swaggered-ui tools.
hapi-swaggered-ui is configured to use a bearer token in api calls via the following config
'hapi-swaggered-ui':{ authorization: { // see above
field: 'Authorization',
scope: 'header', // header works as well
valuePrefix: 'Bearer '// prefix incase
} },
This works great for most calls except file upload calls, which is configured using the method found in the hapi-swaggered documentation for file uploads. In the case of file uploads the configured auth is not sent and no bearer token field is used.
I am using hapi-swaggered/hapi-swaggered-ui tools.
hapi-swaggered-ui is configured to use a bearer token in api calls via the following config
'hapi-swaggered-ui':{ authorization: { // see above field: 'Authorization', scope: 'header', // header works as well valuePrefix: 'Bearer '// prefix incase } },
This works great for most calls except file upload calls, which is configured using the method found in the hapi-swaggered documentation for file uploads. In the case of file uploads the configured auth is not sent and no bearer token field is used.