tokenhandler

package
v0.0.0-...-b9943e7 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	OIDC struct {
		ClientID  string
		IssuerURL string
	}
	CaCertPath string
	Insecure   bool
}

type FederatedClaims

type FederatedClaims struct {
	ConnectorID string `json:"connector_id"`
	UserID      string `json:"user_id"`
}

FederatedClaims oidc

type User

type User struct {
	Email           string
	Groups          []string
	FederatedClaims FederatedClaims
}

User impelements generateServiceAccount

func Authorize

func Authorize(bearerToken string, config *Config) (*User, error)

Authorize verifies a bearer token and pulls user information form the claims.

Jump to

Keyboard shortcuts

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