1 // Copyright 2018 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
7 // This file applies to App Engine second generation runtimes (>= Go 1.11) and App Engine flexible.
19 var logOnce sync.Once // only spam about deprecation once
21 // See comment on AppEngineTokenSource in appengine.go.
22 func appEngineTokenSource(ctx context.Context, scope ...string) oauth2.TokenSource {
24 log.Print("google: AppEngineTokenSource is deprecated on App Engine standard second generation runtimes (>= Go 1.11) and App Engine flexible. Please use DefaultTokenSource or ComputeTokenSource.")
26 return ComputeTokenSource("")