oidc

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKeyID

func GetKeyID(keysBytes []byte) (string, error)

func NewJWT

func NewJWT(issuerName, kid, keyFile string, opts ...JWTOpt) (string, error)

Types

type JWTOpt

type JWTOpt func(*oidcTokenClaim)

func WithAudience

func WithAudience(audience string) JWTOpt

func WithEmail

func WithEmail(email string) JWTOpt

func WithGroup

func WithGroup(group string) JWTOpt

func WithKubernetesAccess

func WithKubernetesAccess(access bool) JWTOpt

func WithRole

func WithRole(role string) JWTOpt

func WithSubject

func WithSubject(subject string) JWTOpt

type MinimalProvider

type MinimalProvider struct {
	Discovery, Keys, PrivateKey []byte
	KeyID                       string
}

func GenerateMinimalProvider

func GenerateMinimalProvider(issuerURL string) (*MinimalProvider, error)

Jump to

Keyboard shortcuts

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