diff options
| author | James Elliott <james-d-elliott@users.noreply.github.com> | 2024-03-06 18:25:42 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-06 17:25:42 +1000 |
| commit | 0299e8d6ce1c70d56d9320845d092e809cb90de9 (patch) | |
| tree | 4dc849df379603f282b7e1b11e61514c0255f85e /internal/configuration/deprecation.go | |
| parent | 648fdfe93b5ac24f49624c4c24fc1cee4bce398b (diff) | |
refactor(oidc): misc improvements (#6775)
Adds several refactored elements to many areas of OpenID Connect 1.0.
Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
Diffstat (limited to 'internal/configuration/deprecation.go')
| -rw-r--r-- | internal/configuration/deprecation.go | 36 |
1 files changed, 34 insertions, 2 deletions
diff --git a/internal/configuration/deprecation.go b/internal/configuration/deprecation.go index ad48456ba..5310eec9d 100644 --- a/internal/configuration/deprecation.go +++ b/internal/configuration/deprecation.go @@ -294,6 +294,38 @@ var deprecations = map[string]Deprecation{ MapFunc: nil, ErrFunc: nil, }, + "identity_providers.oidc.clients[].id": { + Version: model.SemanticVersion{Major: 4, Minor: 38}, + Key: "identity_providers.oidc.clients[].id", + NewKey: "identity_providers.oidc.clients[].client_id", + AutoMap: true, + MapFunc: nil, + ErrFunc: nil, + }, + "identity_providers.oidc.clients[].secret": { + Version: model.SemanticVersion{Major: 4, Minor: 38}, + Key: "identity_providers.oidc.clients[].secret", + NewKey: "identity_providers.oidc.clients[].client_secret", + AutoMap: true, + MapFunc: nil, + ErrFunc: nil, + }, + "identity_providers.oidc.clients[].description": { + Version: model.SemanticVersion{Major: 4, Minor: 38}, + Key: "identity_providers.oidc.clients[].description", + NewKey: "identity_providers.oidc.clients[].client_name", + AutoMap: true, + MapFunc: nil, + ErrFunc: nil, + }, + "identity_providers.oidc.clients[].sector_identifier": { + Version: model.SemanticVersion{Major: 4, Minor: 38}, + Key: "identity_providers.oidc.clients[].sector_identifier", + NewKey: "identity_providers.oidc.clients[].sector_identifier_uri", + AutoMap: true, + MapFunc: nil, + ErrFunc: nil, + }, "authentication_backend.ldap.username_attribute": { Version: model.SemanticVersion{Major: 4, Minor: 38}, Key: "authentication_backend.ldap.username_attribute", @@ -361,7 +393,7 @@ var deprecations = map[string]Deprecation{ "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", + NewKey: "identity_providers.oidc.jwks", AutoMap: false, MapFunc: nil, ErrFunc: func(d Deprecation, keysFinal map[string]any, value any, val *schema.StructValidator) { @@ -371,7 +403,7 @@ var deprecations = map[string]Deprecation{ "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", + NewKey: "identity_providers.oidc.jwks", AutoMap: false, MapFunc: nil, ErrFunc: func(d Deprecation, keysFinal map[string]any, value any, val *schema.StructValidator) { |
