|
|
|
@ -60,7 +60,8 @@ locals {
|
|
|
|
|
provider "artifactory" {
|
|
|
|
|
url = join("/", [var.jfrog_url, "artifactory"])
|
|
|
|
|
# Use the OAuth token if auth_method is 'oauth', else use the admin-level token
|
|
|
|
|
access_token = var.auth_method == "oauth" ? data.coder_external_auth.jfrog.access_token : var.artifactory_access_token
|
|
|
|
|
access_token = var.auth_method == "oauth" ? "dummy" : var.artifactory_access_token
|
|
|
|
|
check_license = false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
resource "artifactory_scoped_token" "me" {
|
|
|
|
|