iap

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IAP

type IAP struct {
	ServiceAccount string       `valid:"required"`
	ClientID       string       `valid:"dns,required"`
	JWS            jws.JWS      `valid:"-"`
	HTTPClient     *http.Client `valid:"-"`
}

IAP represents the information needed to access IAP-protected app

func New

func New(hc *http.Client, sa, id string) (*IAP, error)

func (*IAP) Token

func (c *IAP) Token() (string, error)

Jump to

Keyboard shortcuts

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