-
Notifications
You must be signed in to change notification settings - Fork 177
Open
Description
I could be misunderstanding the disableRequestAcsUrl feature, or I could be testing it wrong, but it seems like it does not work as advertised.
Here is my server file:
const { runServer } = require('saml-idp')
const path = require('path')
runServer({
disableRequestAcsUrl: true,
audience: 'test',
acsUrl: 'i am so invalid',
cert: path.join(__dirname, 'idp-public-cert.pem'),
key: path.join(__dirname, 'idp-private-key.pem')
})
It seems like the SAMLResponse is posted back to the requested ACS URL, even though the disableRequestAcsUrl flag is set. I would expect it to post to the invalid acsUrl.
Looking at the code, it seems like the getPostURL function that is passed to samlp does not take into account whether this flag is set, so the postUrl is always the requested ACS URL.
I'm happy to open a PR if this is a bug. And thanks for the library!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels