FusionAuth / terraform-provider-fusionauth

FusionAuth Terraform Provider
https://registry.terraform.io/providers/FusionAuth/fusionauth/latest
Apache License 2.0
35 stars 53 forks source link

Add refresh token sliding window configuration #243

Closed jpoiron closed 10 months ago

jpoiron commented 11 months ago

Version 1.46.0 of FusionAuth introduced the following new configuration options for tenant.jwtConfiguration:

  1. refreshTokenExpirationPolicy: SlidingWindowWithMaximumLifetime
  2. refreshTokenSlidingWindowConfiguration.maximumTimeToLiveInMinutes

See: https://fusionauth.io/docs/v1/tech/apis/tenants

Screenshot 2023-10-25 162421

Screenshot 2023-10-25 162446

These changes aim to allow managing these values via the terraform provider. Specifically:

mmanes commented 11 months ago

Hi @jpoiron, thanks for the addition. Could you add test coverage for this in resource_fusionauth_tenant_test.go as well?

jpoiron commented 11 months ago

Sure, no problem. Now to figure out how to write tests... :)

jpoiron commented 11 months ago

@mmanes I have updated the tests. Hopefully I did it correctly.

jpoiron commented 11 months ago

I forgot to try running linting though. Doing that now.

jpoiron commented 11 months ago

@mmanes Linting errors fixed.