Versions in this module Expand all Collapse all v0 v0.1.1 Mar 11, 2024 v0.1.0 Oct 19, 2023 Changes in this version + func NewTokenProvider(opts *Options) (auth.TokenProvider, error) + type ComputeTokenFormat int + const ComputeTokenFormatDefault + const ComputeTokenFormatFull + const ComputeTokenFormatFullWithLicense + const ComputeTokenFormatStandard + type Options struct + Audience string + Client *http.Client + ComputeTokenFormat ComputeTokenFormat + CredentialsFile string + CredentialsJSON []byte + CustomClaims map[string]interface{} + type Payload struct + Audience string + Claims map[string]interface{} + Expires int64 + IssuedAt int64 + Issuer string + Subject string + func ParsePayload(idToken string) (*Payload, error) + func Validate(ctx context.Context, idToken string, audience string) (*Payload, error) + type Validator struct + func NewValidator(opts *ValidatorOptions) (*Validator, error) + func (v *Validator) Validate(ctx context.Context, idToken string, audience string) (*Payload, error) + type ValidatorOptions struct + Client *http.Client