thorin-plugin-cluster-kube 2.0.10 → 2.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,7 @@
5
5
  const crypto = require('crypto'),
6
6
  DEFAULT_ALG = 'sha256',
7
7
  DEFAULT_PREFIX = 'D',
8
- DEFAULT_TIMEOUT = 60000; // token expires in 1min
8
+ DEFAULT_TIMEOUT = 60000 * 60 * 6; // token expires in 6h
9
9
 
10
10
  module.exports = function init(thorin, opt) {
11
11
 
@@ -198,6 +198,9 @@ module.exports = function init(thorin, opt) {
198
198
  let clientData = intentObj.client(),
199
199
  tokenType = intentObj.authorizationSource,
200
200
  accessToken = intentObj.authorization;
201
+ if (intentObj.data('proxy_auth') === true) {
202
+ return true;
203
+ }
201
204
  if (clientData.headers) {
202
205
  let headerToken = clientData.headers['x-cluster-token'];
203
206
  if (headerToken) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "thorin-plugin-cluster-kube",
3
3
  "author": "UNLOQ Systems",
4
- "version": "2.0.10",
4
+ "version": "2.0.12",
5
5
  "dependencies": {},
6
6
  "description": "Thorin.js cluster plugin for microservice communication within a kubernetes environment",
7
7
  "main": "index.js",