@@ -514,7 +514,7 @@ module.exports = function(app, checkAuthorisation, getEntityDir, sendLogoutRespo
514514 return { result : false , data : "Utente non trovato. " } ;
515515 }
516516
517- function sendResponse ( res , params , user ) {
517+ async function sendResponse ( res , params , user ) {
518518
519519 let suiteid = "test-suite-1" ;
520520 let caseid = "1" ;
@@ -582,7 +582,7 @@ module.exports = function(app, checkAuthorisation, getEntityDir, sendLogoutRespo
582582 defaults = Utility . defaultParam ( defaults , "Audience" , serviceProviderEntityId ) ;
583583
584584 let testSuite = new TestSuite ( config_demo , config_test ) ;
585- let testResponse = testSuite . getTestTemplate ( suiteid , caseid , requestedAttributes , defaults , userParams ) ;
585+ let testResponse = await testSuite . getTestTemplate ( suiteid , caseid , requestedAttributes , defaults , userParams ) ;
586586 let signed = testResponse . compiled ;
587587
588588 if ( sign_response || sign_assertion ) {
@@ -610,7 +610,7 @@ module.exports = function(app, checkAuthorisation, getEntityDir, sendLogoutRespo
610610
611611 }
612612
613- function sendErrorResponse ( res , params , errorCode ) {
613+ async function sendErrorResponse ( res , params , errorCode ) {
614614
615615 let suiteid = "test-suite-1" ;
616616
@@ -674,7 +674,7 @@ module.exports = function(app, checkAuthorisation, getEntityDir, sendLogoutRespo
674674 defaults = Utility . defaultParam ( defaults , "Audience" , serviceProviderEntityId ) ;
675675
676676 let testSuite = new TestSuite ( config_demo , config_test ) ;
677- let testResponse = testSuite . getTestTemplate ( suiteid , caseid , [ ] , defaults , [ ] ) ;
677+ let testResponse = await testSuite . getTestTemplate ( suiteid , caseid , [ ] , defaults , [ ] ) ;
678678 let signed = testResponse . compiled ;
679679
680680 if ( sign_response || sign_assertion ) {
@@ -701,7 +701,7 @@ module.exports = function(app, checkAuthorisation, getEntityDir, sendLogoutRespo
701701
702702 }
703703
704- function sendLogoutResponse ( res , samlRequest , relayState ) {
704+ async function sendLogoutResponse ( res , samlRequest , relayState ) {
705705
706706 let xml = PayloadDecoder . decode ( samlRequest ) ;
707707 let requestParser = new RequestParser ( xml ) ;
@@ -741,7 +741,7 @@ module.exports = function(app, checkAuthorisation, getEntityDir, sendLogoutRespo
741741 defaults = Utility . defaultParam ( defaults , "Issuer" , config_demo . entityID ) ;
742742
743743 let testSuite = new TestSuite ( config_demo , config_test ) ;
744- let logoutResponse = testSuite . getTestTemplate ( "test-logout" , "1" , requestedAttributes , defaults , [ ] ) ;
744+ let logoutResponse = await testSuite . getTestTemplate ( "test-logout" , "1" , requestedAttributes , defaults , [ ] ) ;
745745 let signature = null ;
746746
747747 let idp = new IdP ( config_demo ) ;
0 commit comments