@flink-app/jwt-auth-plugin 0.5.0 → 0.5.3
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.
|
@@ -97,7 +97,7 @@ function authenticateRequest(req, routePermissions, rolePermissions, _a) {
|
|
|
97
97
|
if (!token) return [3 /*break*/, 2];
|
|
98
98
|
decodedToken = void 0;
|
|
99
99
|
try {
|
|
100
|
-
decodedToken = jwt_simple_1.default.decode(token, secret,
|
|
100
|
+
decodedToken = jwt_simple_1.default.decode(token, secret, false, algo);
|
|
101
101
|
}
|
|
102
102
|
catch (err) {
|
|
103
103
|
flink_1.log.debug("Failed to decode token: " + err);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flink-app/jwt-auth-plugin",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"description": "Flink plugin for JWT auth",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "node --preserve-symlinks -r ts-node/register -- node_modules/jasmine/bin/jasmine --config=./spec/support/jasmine.json",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"tsc-watch": "^4.2.9",
|
|
32
32
|
"typescript": "^4.2.4"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "c5e47bae95b9e157f77936d7b8996a2534c26a3f"
|
|
35
35
|
}
|
|
@@ -96,7 +96,7 @@ async function authenticateRequest(
|
|
|
96
96
|
let decodedToken;
|
|
97
97
|
|
|
98
98
|
try {
|
|
99
|
-
decodedToken = jwtSimple.decode(token, secret,
|
|
99
|
+
decodedToken = jwtSimple.decode(token, secret, false, algo);
|
|
100
100
|
} catch (err) {
|
|
101
101
|
log.debug(`Failed to decode token: ${err}`);
|
|
102
102
|
decodedToken = null;
|