openidprovider

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AccessToken = iota
	IdToken
)

Variables

This section is empty.

Functions

This section is empty.

Types

type OpenIdProvider

type OpenIdProvider struct {
	Name string
	// contains filtered or unexported fields
}

func (OpenIdProvider) Endpoint

func (op OpenIdProvider) Endpoint() oauth2.Endpoint

func (OpenIdProvider) TokenData

func (op OpenIdProvider) TokenData(ctx context.Context, tok oauth2.Token) (TokenData, error)

type TokenData

type TokenData struct {
	Subject string
	Expiry  time.Time
	Roles   map[string][]string
}

Jump to

Keyboard shortcuts

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