From c79f04ed9e51d797295b23fc017323e9cd5be6b5 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Mon, 13 Nov 2023 11:39:38 +0300 Subject: [PATCH] test again --- jfrog/main.tf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jfrog/main.tf b/jfrog/main.tf index 6ccb2d5..9e564a7 100644 --- a/jfrog/main.tf +++ b/jfrog/main.tf @@ -8,7 +8,7 @@ terraform { } artifactory = { source = "registry.terraform.io/jfrog/artifactory" - version = "~> 8.4.0" + version = "~> 9.8.0" } } } @@ -58,9 +58,9 @@ locals { # Configure the Artifactory provider provider "artifactory" { - url = join("/", [var.jfrog_url, "artifactory"]) - access_token = var.artifactory_access_token == "" ? "default" : var.artifactory_access_token - check_license = false + 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 } resource "artifactory_scoped_token" "me" {