add `refreshable` and `expires_in` attributess

pull/100/head
Muhammad Atif Ali 2 years ago committed by GitHub
parent 6005ec1bd6
commit 33cbee9521
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -29,6 +29,18 @@ variable "check_license" {
default = true
}
variable "refreshable" {
type = bool
description = "Is this token refreshable? Default is `false`."
default = false
}
variable "expires_in" {
type = bool
description = "The amount of time, in seconds, it would take for the token to expire."
default = null
}
variable "username_field" {
type = string
description = "The field to use for the artifactory username. i.e. Coder username or email."
@ -74,7 +86,8 @@ resource "artifactory_scoped_token" "me" {
# which fails validation.
username = length(local.username) > 0 ? local.username : "dummy"
scopes = ["applied-permissions/user"]
refreshable = true
refreshable = var.refreshable
expires_in = var.expires_in
}
data "coder_workspace" "me" {}

Loading…
Cancel
Save