ciauth

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GitHubActions = "GitHubActions"
	GitLab        = "GitLab"
	Buildkite     = "Buildkite"
)

Variables

View Source
var (
	DefaultProviderEndpoints = map[string]string{
		GitHubActions: "https://token.actions.githubusercontent.com",
		GitLab:        "https://gitlab.com",
		Buildkite:     "https://buildkite.com",
	}
)

Functions

func NewWithConfig

func NewWithConfig(ctx context.Context, cfg Config) (echo.MiddlewareFunc, error)

Types

type Config

type Config struct {
	Providers map[string]string
}

type OIDCProviders

type OIDCProviders struct {
	// contains filtered or unexported fields
}

func NewOIDCProviders

func NewOIDCProviders(providerEndpoints map[string]string) *OIDCProviders

func (*OIDCProviders) VerifyToken

func (o *OIDCProviders) VerifyToken(ctx context.Context, provider, token string) (*oidc.IDToken, error)

Jump to

Keyboard shortcuts

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