Skip to content

Commit bfb41d1

Browse files
authored
fix: userinfo error response check by test
fix: userinfo error response check by test
2 parents 8b93d8b + a942d87 commit bfb41d1

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

src/server/api/oidc.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,10 +570,18 @@ module.exports = function(app, checkAuthorisation, database) {
570570
);
571571
*/
572572

573-
console.log("Userinfo Response", userinforesponse.data);
573+
console.log("Userinfo Response", {
574+
status: userinforesponse.status,
575+
header: userinforesponse.header,
576+
data: userinforesponse.data
577+
});
574578

575579
} catch(error) {
576580
console.log("Userinfo Request ERROR", error.response.data);
581+
582+
userinforesponse = error.response;
583+
584+
/* let check error response by tests
577585
return res.status(400).json({
578586
error: "Userinfo Request ERROR",
579587
error_message: error.response.data,
@@ -586,6 +594,7 @@ module.exports = function(app, checkAuthorisation, database) {
586594
refreshtokenresponse: actualtokenresponse.data,
587595
userinforequest: userinforequest
588596
});
597+
*/
589598
}
590599
}
591600
}

src/server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "spid-oidc-check-op",
3-
"version": "1.15.7",
3+
"version": "1.15.8",
44
"description": "SPID OIDC Conformance Test Tool for OP",
55
"main": "spid-oidc-check-op",
66
"author": "Michele D'Amico (damikael) - AgID",

0 commit comments

Comments
 (0)