google

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OrgType = "google"

	// https://developers.google.com/identity/protocols/OAuth2InstalledApp
	GoogleOauth2ClientID     = "37154062056-220683ek37naab43v23vc5qg01k1j14g.apps.googleusercontent.com"
	GoogleOauth2ClientSecret = "pB9ITCuMPLj-bkObrTqKbt57"
)

Variables

This section is empty.

Functions

func IssueToken

func IssueToken() error

func New

func New(ctx context.Context, opts Options, domain string) (auth.Interface, error)

Types

type Authenticator

type Authenticator struct {
	Options
	// contains filtered or unexported fields
}

func (Authenticator) UID

func (g Authenticator) UID() string

type Options

type Options struct {
	ServiceAccountJsonFile string
	AdminEmail             string
	// contains filtered or unexported fields
}

func NewOptions

func NewOptions() Options

func (*Options) AddFlags

func (o *Options) AddFlags(fs *pflag.FlagSet)

func (Options) Apply

func (o Options) Apply(d *apps.Deployment) (extraObjs []runtime.Object, err error)

func (*Options) Configure

func (o *Options) Configure() error

func (*Options) Validate

func (o *Options) Validate() []error

type TokenInfo

type TokenInfo struct {
	gauth.Tokeninfo
	HD string `json:"hd"`
}

Jump to

Keyboard shortcuts

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