From 00fb8c0c52098c8ff8ad4b97259698fc64b98112 Mon Sep 17 00:00:00 2001 From: bootstraponline Date: Thu, 10 Jan 2019 15:57:54 -0500 Subject: [PATCH] Update GcAuth.kt --- test_runner/src/main/kotlin/ftl/gc/GcAuth.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test_runner/src/main/kotlin/ftl/gc/GcAuth.kt b/test_runner/src/main/kotlin/ftl/gc/GcAuth.kt index 6c1b4aeb94..edd3cd123c 100644 --- a/test_runner/src/main/kotlin/ftl/gc/GcAuth.kt +++ b/test_runner/src/main/kotlin/ftl/gc/GcAuth.kt @@ -46,15 +46,14 @@ object GcAuth { // https://github.com/bootstraponline/gcloud_cli/blob/e4b5e01610abad2e31d8a6edb20b17b2f84c5395/google-cloud-sdk/lib/googlecloudsdk/core/config.py#L167 val scopes = listOf("https://www.googleapis.com/auth/cloud-platform") - // Build flow and trigger user authorization request. val flow = GoogleAuthorizationCodeFlow.Builder(HTTP_TRANSPORT, JSON_FACTORY, CLIENT_ID, CLIENT_SECRET, scopes) .setDataStoreFactory(DATA_STORE_FACTORY) .setAccessType("offline") .build() val authCode = AuthorizationCodeInstalledApp(flow, LocalServerReceiver()) - val storeKey = "default" + val dataStoreKey = "default" - return authCode.authorize(storeKey).toGoogleCredential() + return authCode.authorize(dataStoreKey).toGoogleCredential() } }