# Okta autentication SAML 2.0 Can not post

**URL:** <https://discourse.nodered.org/t/okta-autentication-saml-2-0-can-not-post/88769>\
**Category:** General\
**Created:** [18 June 2024 00:54 UTC](https://discourse.nodered.org/t/okta-autentication-saml-2-0-can-not-post/88769 "2024-06-18T00:54:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![leozanellato](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/leozanellato/32/92020_2.png) [@leozanellato](https://discourse.nodered.org/u/leozanellato)\
**Post date:** [18 June 2024 00:54 UTC](https://discourse.nodered.org/t/okta-autentication-saml-2-0-can-not-post/88769/1 "2024-06-18T00:54:37Z")

</div>

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/](http://127.0.0.1:1880/), I log in but receive the error: "Cannot POST /saml/postResponse"

Could someone help me?

```auto

> 
> 
> 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: "*" });
> }

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [16 September 2024 00:55 UTC](https://discourse.nodered.org/t/okta-autentication-saml-2-0-can-not-post/88769/2 "2024-09-16T00:55:16Z")

</div>

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