mirror of
https://github.com/golang/oauth2.git
synced 2025-07-21 00:00:09 +08:00
This new function allows reading the project ID from a service account JSON file without an additional disk read. Change-Id: I1f03ca3ca39a2ae3bd6524367c17761b0f08de45 Reviewed-on: https://go-review.googlesource.com/32876 Reviewed-by: Jaana Burcu Dogan <jbd@google.com>
16 lines
359 B
Go
16 lines
359 B
Go
// Copyright 2015 The oauth2 Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// +build appenginevm
|
|
|
|
package google
|
|
|
|
import "google.golang.org/appengine"
|
|
|
|
func init() {
|
|
appengineVM = true
|
|
appengineTokenFunc = appengine.AccessToken
|
|
appengineAppIDFunc = appengine.AppID
|
|
}
|