Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator struct {
// contains filtered or unexported fields
}
Authenticator authenticates GCE instance identity tokens.
func NewAuthenticator ¶
func NewAuthenticator( computeInstanceIdentityVerifier *jaspercompute.InstanceIdentityVerifier, identityStore auth.IdentityStore) (*Authenticator, error)
NewAuthenticator creates a *Authenticator who's Authenticate decodes and verifies a GCE instance identity JWT token and returns the *auth.Identity with the GCE instance identity (by doing a lookup into identityStore).
func (*Authenticator) Authenticate ¶
Authenticate decodes and verifies a GCE instance identity JWT token and either returns a non-nil *auth.Identity (first return parameter) or a non-nil error (second return parameter). The *auth.Identity is looked up from the auth.IdentityStore passed to NewAuthenticator.
Click to show internal directories.
Click to hide internal directories.