You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The plugin notes stated that EM will extract the client_id from the JWT.
Sample Log :
2019-12-11T22:00:50.582Z plugin:extauth Found JWK
2019-12-11T22:00:50.590Z plugin:extauth JWT Expiry enabled
2019-12-11T22:00:50.631Z plugin:extauth JWT is valid
2019-12-11T22:00:50.632Z plugin:oauth missing_authorization
2019-12-11T22:00:50.632Z plugin:oauth auth failure 401 missing_authorization Missing Authorization header { 'user-agent': 'PostmanRuntime/7.19.0',
The text was updated successfully, but these errors were encountered:
Looks like this plugin is not adding client_id to x-api-key header because of false check
In line 127 and 165, checking for not sendErr. But sendErr is defaulted to true, which makes this check to False. But we need it as true Could you please fix this. as x-api-key is not being passed to oauth plugin and causing issues
Actual :
if (!sendErr)
//if this plugin is not sending errors, assume MG is not in local mode
req.headers['x-api-key'] = jwtdecode.payloadObj[client_id];
}
Expected:
if (sendErr)
//if this plugin is not sending errors, assume MG is not in local mode
req.headers['x-api-key'] = jwtdecode.payloadObj[client_id];
}
The plugin notes stated that EM will extract the client_id from the JWT.
Sample Log :
2019-12-11T22:00:50.582Z plugin:extauth Found JWK
2019-12-11T22:00:50.590Z plugin:extauth JWT Expiry enabled
2019-12-11T22:00:50.631Z plugin:extauth JWT is valid
2019-12-11T22:00:50.632Z plugin:oauth missing_authorization
2019-12-11T22:00:50.632Z plugin:oauth auth failure 401 missing_authorization Missing Authorization header { 'user-agent': 'PostmanRuntime/7.19.0',
The text was updated successfully, but these errors were encountered: