oauth

package
v0.0.0-...-9e5282c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Token

type Token string

Token as string alias empathizes that this is a secret.

type TokenVerifier

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

func NewTokenVerifier

func NewTokenVerifier(ctx context.Context, c *http.Client, project string) (*TokenVerifier, error)

NewTokenVerifier returns a new TokenVerifier instance for a cloud project.

func (*TokenVerifier) Verify

func (v *TokenVerifier) Verify(ctx context.Context, token Token, sa string) error

Verify if a given token has "actAs" permission on a given service account.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL