diff --git a/src/strategy.ts b/src/strategy.ts index a5661a5..663fca2 100644 --- a/src/strategy.ts +++ b/src/strategy.ts @@ -124,9 +124,7 @@ export class SpidStrategy extends MultiSamlStrategy { {}, saml, { - additionalParams: { - RelayState: 'RelayState', - }, + additionalParams: saml.additionalParams ?? { RelayState: 'RelayState' }, authnContext: [SPID_LEVELS[config.spid.authnContext]], forceAuthn: FORCE_AUTHN_LEVELS.includes(authnContext), passReqToCallback: config.passReqToCallback,