Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

authentik_provider_oauth2 token_validity error #303

Closed
lyz-code opened this issue Feb 16, 2023 · 1 comment
Closed

authentik_provider_oauth2 token_validity error #303

lyz-code opened this issue Feb 16, 2023 · 1 comment

Comments

@lyz-code
Copy link

authentik_provider_oauth2 resources started showing a change in token_validity when doing terraform plan although it looks as it doesn't actually change the property:

  ~ resource "authentik_provider_oauth2" "gitea" {
        access_code_validity       = "minutes=1"
        ...
      + token_validity             = "minutes=10"
    }

If you apply the change, when you reapply the diff is shown again. Furthermore, I've manually set the Refresh Token validity to minutes=11 and it looks like terraform is not aware of the configuration either.

I'm using the 2023.2.0 version of the provider.

Until the issue is fixed you can add the next configuration to your resources:

  lifecycle {
    ignore_changes = [
      token_validity,
    ]
  }
@lyz-code
Copy link
Author

Solved in 2023.2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant