diff options
| author | James Elliott <james-d-elliott@users.noreply.github.com> | 2023-08-02 09:59:02 +1000 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-02 09:59:02 +1000 | 
| commit | 788be599c0fb8d7c30a8a18fa5705bacabe5dd27 (patch) | |
| tree | 41cdb66183a3bcfd15e532c6a72225310d7edc08 /internal/configuration/deprecation.go | |
| parent | fc75773d2be78babab9ae75ba095d7de23f80ac2 (diff) | |
feat(oidc): per-client custom token lifespans (#5741)
This allows configuring custom lifespans for individual clients. The lifespans can be completely separate per-client, and be individually tuned for each particular token type and grant type.
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 | 32 | 
1 files changed, 32 insertions, 0 deletions
diff --git a/internal/configuration/deprecation.go b/internal/configuration/deprecation.go index b8e9d472e..eb261ddd3 100644 --- a/internal/configuration/deprecation.go +++ b/internal/configuration/deprecation.go @@ -326,4 +326,36 @@ var deprecations = map[string]Deprecation{  		MapFunc: nil,  		ErrFunc: nil,  	}, +	"identity_providers.oidc.access_token_lifespan": { +		Version: model.SemanticVersion{Major: 4, Minor: 38}, +		Key:     "identity_providers.oidc.access_token_lifespan", +		NewKey:  "identity_providers.oidc.lifespans.access_token", +		AutoMap: true, +		MapFunc: nil, +		ErrFunc: nil, +	}, +	"identity_providers.oidc.authorize_code_lifespan": { +		Version: model.SemanticVersion{Major: 4, Minor: 38}, +		Key:     "identity_providers.oidc.authorize_code_lifespan", +		NewKey:  "identity_providers.oidc.lifespans.authorize_code", +		AutoMap: true, +		MapFunc: nil, +		ErrFunc: nil, +	}, +	"identity_providers.oidc.id_token_lifespan": { +		Version: model.SemanticVersion{Major: 4, Minor: 38}, +		Key:     "identity_providers.oidc.id_token_lifespan", +		NewKey:  "identity_providers.oidc.lifespans.id_token", +		AutoMap: true, +		MapFunc: nil, +		ErrFunc: nil, +	}, +	"identity_providers.oidc.refresh_token_lifespan": { +		Version: model.SemanticVersion{Major: 4, Minor: 38}, +		Key:     "identity_providers.oidc.refresh_token_lifespan", +		NewKey:  "identity_providers.oidc.lifespans.refresh_token", +		AutoMap: true, +		MapFunc: nil, +		ErrFunc: nil, +	},  }  | 
