SPID validator (samlcheck)

Salve a tutti, ho un problema col validator sia stanziato in locale che utilizzando quello ufficiale (SPID Validator)

in pratica mando dall’SP una richiesta di autenticazione, mi si apre correttamente la pagina del validator, mi autentico con validator,validator (per la istanza in locale, in quello ufficiale non occorre autenticarsi), riesco a vedere la mia richiesta saml.

il problema nasce se esegue il check strict o check extra. il sistema si blocca senza dare alcunn feedback.

Dalla mia istanza locale, potendo accedere ai logs, noto il seguente problema:

DATABASE EXCEPTION (saveStore)
“TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined”

>>> DATABASE EXCEPTION (setMetadataValidation)
"TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined"
(node:26) UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined
    at Function.from (buffer.js:330:9)
    at Function.btoa (/spid-saml-check/spid-validator/server/lib/utils.js:166:23)
    at Database.saveStore (/spid-saml-check/spid-validator/server/lib/database.js:101:45)
    at Database.setRequestValidation (/spid-saml-check/spid-validator/server/lib/database.js:441:18)
    at /spid-saml-check/spid-validator/server/api/request.js:127:34
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:26) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 13)

suggerimenti ?

grazie infinite a tutti

Salve @Giovanni_Francesco_L ,
prima di eseguire i test sulla Request occorre salvare il metadata del SP, tramite la funzione di upload metadata.
Consiglio di verificare che il metadata sia un xml ben formato e che sia presente un valore corretto per l’attributo EntityID.

Michele D’Amico (@damikael)

1 Mi Piace