mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
Fix JSON parsing for fleetdm.com EST certificate issuance (#23977)
Missed a JSON.parse after refactoring the HTTP request code. This was missed because we had to comment out some of the code for testing in order to skip authentication.
This commit is contained in:
parent
e4df954b0f
commit
31c8edbd9f
1 changed files with 3 additions and 3 deletions
|
|
@ -83,11 +83,11 @@ module.exports = {
|
|||
throw 'invalidToken';
|
||||
}
|
||||
|
||||
if (!introspectResponse.body.active) {
|
||||
const introspectBody = JSON.parse(introspectResponse.body);
|
||||
if (!introspectBody.active) {
|
||||
throw 'invalidToken';
|
||||
}
|
||||
|
||||
const introspectUsername = introspectResponse.body.username;
|
||||
const introspectUsername = introspectBody.username;
|
||||
|
||||
// Extract the email and username from the CSR. Ensure they match.
|
||||
let jsrsasign = require('jsrsasign');
|
||||
|
|
|
|||
Loading…
Reference in a new issue