We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d0010f commit 6f9df66Copy full SHA for 6f9df66
src/util/jwt_utils.js
@@ -49,6 +49,8 @@ function authenticate_jwt_token(req) {
49
throw new Error('Missing authorization header');
50
}
51
const decoded = authorize_jwt_token(token);
52
+ // Same role 'metrics-auth' is used in operator RPC call,
53
+ // if needs to change update operator RPC call first
54
if (decoded.role !== "metrics-auth") {
55
throw new Error("Role based authorization failed");
56
0 commit comments