Closed fautore closed 3 weeks ago
fix issue #10. The main idea is to enable the ability for the user to pass RelayState when building the strategy:
RelayState
// configuration code ... saml: { authnRequestBinding: 'HTTP-POST', // or HTTP-Redirect attributeConsumingServiceIndex: '0', // index of 'acs' array signatureAlgorithm: 'sha256', digestAlgorithm: 'sha256', callbackUrl: spCallbackUrl, logoutCallbackUrl: spLogoutCallbackUrl, racComparison: 'minimum', privateKey, audience: sp, additionalParams: { // pass relaystate to additionalParams RelayState: 'send test relay state' } }, // configuration code ...
and then access it via:
console.log(req.body.RelayState); // OUTPUT: // send test relay state
if no RelayState is provided, the default is used. I ran the tests, all checks pass, thank you.
LGTM
fix issue #10. The main idea is to enable the ability for the user to pass
RelayState
when building the strategy:and then access it via:
if no RelayState is provided, the default is used. I ran the tests, all checks pass, thank you.