From d2a4aec992687834e77c30ac9940622c987389e4 Mon Sep 17 00:00:00 2001 From: Burcu Dogan Date: Sat, 4 Apr 2015 18:18:45 -0700 Subject: [PATCH] oauth/google: fix the broken default credentials link Change-Id: Iceb8f2fa393a1de4dbb0ab3b85ccee1da5c2b5b7 Reviewed-on: https://go-review.googlesource.com/8474 Reviewed-by: David Symonds --- google/default.go | 6 +++--- google/google.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/google/default.go b/google/default.go index 817bfb7..78f8089 100644 --- a/google/default.go +++ b/google/default.go @@ -28,7 +28,7 @@ import ( // and use "Application Default Credentials." // // For more details, see: -// https://developers.google.com/accounts/application-default-credentials +// https://developers.google.com/accounts/docs/application-default-credentials // func DefaultClient(ctx context.Context, scope ...string) (*http.Client, error) { ts, err := DefaultTokenSource(ctx, scope...) @@ -54,7 +54,7 @@ func DefaultClient(ctx context.Context, scope ...string) (*http.Client, error) { // (In this final case any provided scopes are ignored.) // // For more details, see: -// https://developers.google.com/accounts/application-default-credentials +// https://developers.google.com/accounts/docs/application-default-credentials // func DefaultTokenSource(ctx context.Context, scope ...string) (oauth2.TokenSource, error) { // First, try the environment variable. @@ -94,7 +94,7 @@ func DefaultTokenSource(ctx context.Context, scope ...string) (oauth2.TokenSourc } // None are found; return helpful error. - const url = "https://developers.google.com/accounts/application-default-credentials" + const url = "https://developers.google.com/accounts/docs/application-default-credentials" return nil, fmt.Errorf("google: could not find default credentials. See %v for more information.", url) } diff --git a/google/google.go b/google/google.go index 69f8ff4..74aa7d9 100644 --- a/google/google.go +++ b/google/google.go @@ -11,7 +11,7 @@ // For more information, please read // https://developers.google.com/accounts/docs/OAuth2 // and -// https://developers.google.com/accounts/application-default-credentials. +// https://developers.google.com/accounts/docs/application-default-credentials. package google // import "golang.org/x/oauth2/google" import (