Skip to content

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
Run linter and fix errors using `gofmt`
  • Loading branch information
jpoiron committed Oct 26, 2023
1 parent 6a9fe72 commit f7b5893
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions fusionauth/resource_fusionauth_tenant_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ func buildTenant(data *schema.ResourceData) (fusionauth.Tenant, diag.Diagnostics
RefreshTokenUsagePolicy: fusionauth.RefreshTokenUsagePolicy(data.Get("jwt_configuration.0.refresh_token_usage_policy").(string)),
TimeToLiveInSeconds: data.Get("jwt_configuration.0.time_to_live_in_seconds").(int),
RefreshTokenSlidingWindowConfiguration: fusionauth.RefreshTokenSlidingWindowConfiguration{
MaximumTimeToLiveInMinutes: data.Get("jwt_configuration.0.refresh_token_sliding_window_maximum_time_to_live_in_minutes").(int),
MaximumTimeToLiveInMinutes: data.Get("jwt_configuration.0.refresh_token_sliding_window_maximum_time_to_live_in_minutes").(int),
},
},
LoginConfiguration: fusionauth.TenantLoginConfiguration{
Expand Down Expand Up @@ -581,14 +581,14 @@ func buildResourceDataFromTenant(t fusionauth.Tenant, data *schema.ResourceData)

err = data.Set("jwt_configuration", []map[string]interface{}{
{
"access_token_key_id": t.JwtConfiguration.AccessTokenKeyId,
"id_token_key_id": t.JwtConfiguration.IdTokenKeyId,
"refresh_token_expiration_policy": t.JwtConfiguration.RefreshTokenExpirationPolicy,
"refresh_token_revocation_policy_on_login_prevented": t.JwtConfiguration.RefreshTokenRevocationPolicy.OnLoginPrevented,
"refresh_token_revocation_policy_on_password_change": t.JwtConfiguration.RefreshTokenRevocationPolicy.OnPasswordChanged,
"refresh_token_usage_policy": t.JwtConfiguration.RefreshTokenUsagePolicy,
"refresh_token_time_to_live_in_minutes": t.JwtConfiguration.RefreshTokenTimeToLiveInMinutes,
"time_to_live_in_seconds": t.JwtConfiguration.TimeToLiveInSeconds,
"access_token_key_id": t.JwtConfiguration.AccessTokenKeyId,
"id_token_key_id": t.JwtConfiguration.IdTokenKeyId,
"refresh_token_expiration_policy": t.JwtConfiguration.RefreshTokenExpirationPolicy,
"refresh_token_revocation_policy_on_login_prevented": t.JwtConfiguration.RefreshTokenRevocationPolicy.OnLoginPrevented,
"refresh_token_revocation_policy_on_password_change": t.JwtConfiguration.RefreshTokenRevocationPolicy.OnPasswordChanged,
"refresh_token_usage_policy": t.JwtConfiguration.RefreshTokenUsagePolicy,
"refresh_token_time_to_live_in_minutes": t.JwtConfiguration.RefreshTokenTimeToLiveInMinutes,
"time_to_live_in_seconds": t.JwtConfiguration.TimeToLiveInSeconds,
"refresh_token_sliding_window_maximum_time_to_live_in_minutes": t.JwtConfiguration.RefreshTokenSlidingWindowConfiguration.MaximumTimeToLiveInMinutes,
},
})
Expand Down

0 comments on commit f7b5893

Please sign in to comment.