Use least priviledge scope GCS

Remove debug write
This commit is contained in:
Matthew Burnett 2019-01-24 17:59:17 -05:00
parent 74c8ed1613
commit 4c0ea0e1f3
2 changed files with 2 additions and 2 deletions

View file

@ -78,7 +78,7 @@ public GoogleCloudStorage(OAuth2Info oauth)
{
googleAuth = new GoogleOAuth2(oauth, this)
{
Scope = "https://www.googleapis.com/auth/devstorage.full_control"
Scope = "https://www.googleapis.com/auth/devstorage.read_write"
};
}

View file

@ -116,7 +116,7 @@ public override UploadResult ShortenURL(string url)
string requestjson = JsonConvert.SerializeObject(request);
result.Response = SendRequest(HttpMethod.POST, "https://firebasedynamiclinks.googleapis.com/v1/shortLinks", requestjson, UploadHelpers.ContentTypeJSON, args);
DebugHelper.WriteLine(result.Response);
FirebaseResponse firebaseResponse = JsonConvert.DeserializeObject<FirebaseResponse>(result.Response);
if (firebaseResponse != null)