Okta autentication SAML 2.0 Can not post

I'm trying to create an Okta authentication using SAML 2.0, and the code looks like this:

Every time I try to enter http://127.0.0.1:1880/, I log in but receive the error: "Cannot POST /saml/postResponse"

Could someone help me?


> 
> 
> adminAuth: {
>         type: "strategy",
>         strategy: {
>             name: "saml",
>             label: 'Sign in with SAML',
>             icon: "fa-lock",
>             strategy: require("@node-saml/passport-saml").Strategy,
>             options: {
>                 entryPoint: "https://dev-59858887.okta.com/app/dev-59858887_nodered_1/exkhddh0m7nn4fCKL5d7/sso/saml",
>                 issuer: "http://www.okta.com/exkhdd...",
>                 callbackUrl: "http://127.0.0.1:1880/saml/postResponse",
>                 audience: "http://127.0.0.1:1880/metadata",
>                 cert: fs.readFileSync("C:/Users/lpl_z/OneDrive/Área de Trabalho/cert_teste/sp-certificate.pem", 'utf-8'),
>                 privateKey: fs.readFileSync("C:/Users/lpl_z/OneDrive/Área de Trabalho/cert_teste/sp-private-key.pem", 'utf-8'),
>                 signatureAlgorithm: 'sha256',
>                 validateInResponseTo: 'ifPresent',
>                 disableRequestedAuthnContext: true,
>                 passReqToCallback: true,
>                 idpCert: fs.readFileSync("C:/Users/lpl_z/OneDrive/Área de Trabalho/cert_teste/okta.cert", 'utf-8'),
>                 verify: function(profile, done) {
>                     profile.username = profile.nameID;
>                     done(null, profile);
>                 }
>             }
>         },
>         users: function(user) {
>             return Promise.resolve({ username: user, permissions: "*" });
>         }

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.