istio: istio.io/istio/security/pkg/stsservice/tokenmanager/google Index | Files | Directories

package google

import "istio.io/istio/security/pkg/stsservice/tokenmanager/google"

Index

Package Files

tokenexchangeplugin.go

type Plugin Uses

type Plugin struct {
    // contains filtered or unexported fields
}

Plugin supports token exchange with Google OAuth 2.0 authorization server.

func CreateTokenManagerPlugin Uses

func CreateTokenManagerPlugin(trustDomain, gcpProjectNumber, gkeClusterURL string, enableCache bool) (*Plugin, error)

CreateTokenManagerPlugin creates a plugin that fetches token from a Google OAuth 2.0 authorization server.

func (*Plugin) ClearCache Uses

func (p *Plugin) ClearCache()

ClearCache is only used for testing purposes.

func (*Plugin) DumpPluginStatus Uses

func (p *Plugin) DumpPluginStatus() ([]byte, error)

DumpTokenStatus dumps all token status in JSON

func (*Plugin) ExchangeToken Uses

func (p *Plugin) ExchangeToken(parameters stsservice.StsRequestParameters) ([]byte, error)

GenerateToken takes STS request parameters and fetches token, returns StsResponseParameters in JSON.

func (*Plugin) SetEndpoints Uses

func (p *Plugin) SetEndpoints(fTokenEndpoint, aTokenEndpoint string)

SetEndpoints changes the endpoints for testing purposes only.

Directories

PathSynopsis
mock

Package google imports 14 packages (graph) and is imported by 1 packages. Updated 2020-02-18. Refresh now. Tools for package owners.