summaryrefslogtreecommitdiff
path: root/internal/configuration/deprecation.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/configuration/deprecation.go')
-rw-r--r--internal/configuration/deprecation.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/internal/configuration/deprecation.go b/internal/configuration/deprecation.go
index 420acd194..ad48456ba 100644
--- a/internal/configuration/deprecation.go
+++ b/internal/configuration/deprecation.go
@@ -358,6 +358,26 @@ var deprecations = map[string]Deprecation{
MapFunc: nil,
ErrFunc: nil,
},
+ "identity_providers.oidc.issuer_private_key": {
+ Version: model.SemanticVersion{Major: 4, Minor: 38},
+ Key: "identity_providers.oidc.issuer_private_key",
+ NewKey: "identity_providers.oidc.issuer_private_keys",
+ AutoMap: false,
+ MapFunc: nil,
+ ErrFunc: func(d Deprecation, keysFinal map[string]any, value any, val *schema.StructValidator) {
+ val.PushWarning(fmt.Errorf("configuration key '%s' is deprecated in %s and should be configured using the new configuration key '%s': this has been automatically mapped for you but you will need to adjust your configuration (see https://www.authelia.com/c/oidc) to remove this message", d.Key, d.Version, d.NewKey))
+ },
+ },
+ "identity_providers.oidc.issuer_certificate_chain": {
+ Version: model.SemanticVersion{Major: 4, Minor: 38},
+ Key: "identity_providers.oidc.issuer_certificate_chain",
+ NewKey: "identity_providers.oidc.issuer_private_keys",
+ AutoMap: false,
+ MapFunc: nil,
+ ErrFunc: func(d Deprecation, keysFinal map[string]any, value any, val *schema.StructValidator) {
+ val.PushWarning(fmt.Errorf("configuration key '%s' is deprecated in %s and should be configured using the new configuration key '%s': this has been automatically mapped for you but you will need to adjust your configuration (see https://www.authelia.com/c/oidc) to remove this message", d.Key, d.Version, d.NewKey))
+ },
+ },
"jwt_secret": {
Version: model.SemanticVersion{Major: 4, Minor: 38},
Key: "jwt_secret",