import "istio.io/istio/security/pkg/nodeagent/plugin/providers/google/stsclient"
Package stsclient is for oauth token exchange integration.
var ( // GKEClusterURL is the URL to send requests to the token exchange service. GKEClusterURL = env.RegisterStringVar("GKE_CLUSTER_URL", "", "The url of GKE cluster").Get() )
NewPlugin returns an instance of secure token service client plugin
MockServer is the in-memory secure token service.
func StartNewServer(t *testing.T) (*MockServer, error)
StartNewServer creates a mock server and starts it
func (ms *MockServer) Start() error
Start starts the mock server.
func (ms *MockServer) Stop() error
Stop stops he mock server.
type Plugin struct {
// contains filtered or unexported fields
}
Plugin for google securetoken api interaction.
func (p Plugin) ExchangeToken(ctx context.Context, trustDomain, k8sSAjwt string) ( string, time.Time, int, error)
ExchangeToken exchange oauth access token from trusted domain and k8s sa jwt.
Package stsclient imports 18 packages (graph) and is imported by 2 packages. Updated 2019-12-11. Refresh now. Tools for package owners.