@@ -46,13 +46,17 @@ $config = [
4646 * sign ID Token JWT.
4747 */
4848 // (optional) The private key passphrase.
49+ /** @deprecated */
4950// ModuleConfig::OPTION_PKI_PRIVATE_KEY_PASSPHRASE => 'secret',
5051 // The certificate and private key filenames, with given defaults.
52+ /** @deprecated */
5153 ModuleConfig::OPTION_PKI_PRIVATE_KEY_FILENAME => ModuleConfig::DEFAULT_PKI_PRIVATE_KEY_FILENAME,
5254 ModuleConfig::OPTION_PKI_CERTIFICATE_FILENAME => ModuleConfig::DEFAULT_PKI_CERTIFICATE_FILENAME,
5355
56+
5457 // Token signer, with given default.
5558 // See Lcobucci\JWT\Signer algorithms in https://github.com/lcobucci/jwt/tree/master/src/Signer
59+ /** @deprecated */
5660 ModuleConfig::OPTION_TOKEN_SIGNER => \Lcobucci\JWT\Signer\Rsa\Sha256::class,
5761// ModuleConfig::OPTION_TOKEN_SIGNER => \Lcobucci\JWT\Signer\Hmac\Sha256::class,
5862// ModuleConfig::OPTION_TOKEN_SIGNER => \Lcobucci\JWT\Signer\Ecdsa\Sha256::class,
@@ -65,6 +69,7 @@ $config = [
6569 * PKI options.
6670 */
6771// // (optional) The (new) private key passphrase.
72+ /** @deprecated */
6873// ModuleConfig::OPTION_PKI_NEW_PRIVATE_KEY_PASSPHRASE => 'new-secret',
6974// ModuleConfig::OPTION_PKI_NEW_PRIVATE_KEY_FILENAME => 'new_oidc_module.key',
7075// ModuleConfig::OPTION_PKI_NEW_CERTIFICATE_FILENAME => 'new_oidc_module.crt',
@@ -83,7 +88,7 @@ $config = [
8388 * to set other default (first) algorithm as needed.
8489 * You can also use this config option to advertise any (new) keys, for
8590 * example, for key-rollover scenarios. Just add those entries later in
86- * the list, so they can be published on the OP discovery endpoint.
91+ * the list, so they can be published on the OP JWKS discovery endpoint.
8792 *
8893 * The format is array of associative arrays, where each array value
8994 * consists of the following properties (keys):
@@ -516,6 +521,7 @@ $config = [
516521 // The federation private key passphrase (optional).
517522// ModuleConfig::OPTION_PKI_FEDERATION_PRIVATE_KEY_PASSPHRASE => 'secret',
518523 // The federation certificate and private key filenames, with given defaults.
524+ /** @deprecated */
519525 ModuleConfig::OPTION_PKI_FEDERATION_PRIVATE_KEY_FILENAME =>
520526 ModuleConfig::DEFAULT_PKI_FEDERATION_PRIVATE_KEY_FILENAME,
521527 ModuleConfig::OPTION_PKI_FEDERATION_CERTIFICATE_FILENAME =>
@@ -526,11 +532,38 @@ $config = [
526532 * on how this works.
527533 */
528534 // The federation (new) private key passphrase (optional).
535+ /** @deprecated */
529536// ModuleConfig::OPTION_PKI_FEDERATION_NEW_PRIVATE_KEY_PASSPHRASE => 'new-secret',
530537// ModuleConfig::OPTION_PKI_FEDERATION_NEW_PRIVATE_KEY_FILENAME => 'new_oidc_module_federation.key',
531538// ModuleConfig::OPTION_PKI_FEDERATION_NEW_CERTIFICATE_FILENAME => 'new_oidc_module_federation.crt',
532539
540+ /**
541+ * Federation signature algorithm and key-pair definitions, representing
542+ * supported algorithms for signing, for example, Entity Statements.
543+ * The first algorithm in the list will be used for signing (the
544+ * first entry represents default algorithm and signing key).
545+ * You can also use this config option to advertise any (new) keys, for
546+ * example, for key-rollover scenarios. Just add those entries later in
547+ * the list, so they can be published in Federation JWKS.
548+ *
549+ * Note that these keys SHOULD NOT be the same as the ones used in the
550+ * protocol (Connect) itself.
551+ *
552+ * The format is the same as for the protocol (Connect) signature key pairs
553+ * (option ModuleConfig::OPTION_PROTOCOL_SIGNATURE_KEY_PAIRS)
554+ */
555+ ModuleConfig::OPTION_FEDERATION_SIGNATURE_KEY_PAIRS => [
556+ [
557+ ModuleConfig::KEY_ALGORITHM => \SimpleSAML\OpenID\Algorithms\SignatureAlgorithmEnum::ES256,
558+ ModuleConfig::KEY_PRIVATE_KEY_FILENAME => ModuleConfig::DEFAULT_PKI_FEDERATION_PRIVATE_KEY_FILENAME,
559+ ModuleConfig::KEY_PUBLIC_KEY_FILENAME => ModuleConfig::OPTION_PKI_FEDERATION_CERTIFICATE_FILENAME,
560+ // ModuleConfig::KEY_PRIVATE_KEY_PASSWORD => 'private-key-password', // Optional
561+ // ModuleConfig::KEY_KEY_ID => 'ec-connect-signing-key-01', // Optional
562+ ],
563+ ],
564+
533565 // Federation token signer, with given default.
566+ /** @deprecated */
534567 ModuleConfig::OPTION_FEDERATION_TOKEN_SIGNER => \Lcobucci\JWT\Signer\Rsa\Sha256::class,
535568
536569 // Federation entity statement duration which determines the Expiration Time (exp) claim set in entity
0 commit comments