iap

package
v0.0.0-...-a4160af Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2019 License: MIT 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 {
	Keys          map[string]string
	KeyLoadTime   time.Time
	Audience      string
	Issuer        string
	HostedDomains []string
}

IAP is an IAP verification tool for Gin

func NewIAPVerifier

func NewIAPVerifier(audience string, issuer string, hosteddomains []string) *IAP

NewIAPVerifier Creates an IAP verifier with the given parameters

func (*IAP) Verify

func (i *IAP) Verify(assertion string) (bool, jwt.MapClaims, error)

Verify verifies that a request abides by the IAP settings defined in the IAP type

Jump to

Keyboard shortcuts

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