Feature/ephemeral session lifetime #1408
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🔧 Changes
This PR adds support for configuring ephemeral session lifetime settings at the tenant level in the Auth0 Terraform Provider.
New fields supported in the
auth0_tenantresource:ephemeral_session_lifetime– Number of hours an ephemeral (non-persistent) session will stay valid.idle_ephemeral_session_lifetime– Number of hours an ephemeral session can remain idle before requiring the user to log in again.These fields map to the corresponding properties in the Auth0 Management API, allowing Terraform users to manage session lifecycle behavior in a more fine-grained way.
Changes include:
expand.go,flatten.go, andresource.go.TestAccTenant_Mainto test default values and configuration behavior for ephemeral sessions.flatten_test.go.📚 References
Internal request: Add support for ephemeral session lifetime configuration in Terraform, aligned with the go-auth0 SDK changes.
🔬 Testing
terraform applyverified changes were applied to the tenant.terraform planshowed no diffs after re-apply.TestAccTenant_Mainextended to assertephemeral_session_lifetimeandidle_ephemeral_session_lifetime.flatten_test.gounit tests added for new fields.make testaccpassed and recorded using real tenant credentials.📝 Checklist