store

package
v0.0.0-...-c37676c Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingIDToken = errors.New("Token response is missing ID token. You must wait until the previous ID token expires (likely 90 minutes)")
)

Functions

This section is empty.

Types

type OIDCCredStore

type OIDCCredStore interface {
	GetOIDCTokens(name string) (*OIDCTokens, error)
	SetOIDCAuth(name, clientID, clientSecret string, providerEndpoint oauth2.Endpoint, tok *oauth2.Token) error
	DeleteOIDCAuth(name string) error
}

func NewOIDCCredStore

func NewOIDCCredStore() (OIDCCredStore, error)

type OIDCTokens

type OIDCTokens struct {
	AccessToken string    `json:"access_token,omitempty"`
	IDToken     string    `json:"id_token,omitempty"`
	TokenExpiry time.Time `json:"token_expiry,omitempty"`
}

Jump to

Keyboard shortcuts

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