mirror of
https://github.com/golang/oauth2.git
synced 2025-07-21 00:00:09 +08:00
Before AppEngine classic allowed "google.golang.org/appengine" imports, we used to maintain two hook files to choose either from "appengine" or "google.golang.org/appengine" namespaces. Now, both environments allow importing from "google.golang.org/appengine". Therefore, there is no need to set hooks in two separate files. Also note that Flex prefers to use metadata server, so we still need to be able to differentiate between these environments. Change-Id: I7478ebdfa1b062d466aaf2aca938f93d42b4c58a Reviewed-on: https://go-review.googlesource.com/37378 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
15 lines
345 B
Go
15 lines
345 B
Go
// Copyright 2015 The Go 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 appengine appenginevm
|
|
|
|
package google
|
|
|
|
import "google.golang.org/appengine"
|
|
|
|
func init() {
|
|
appengineTokenFunc = appengine.AccessToken
|
|
appengineAppIDFunc = appengine.AppID
|
|
}
|