oidc

package
v0.0.0-...-f54fb7c Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OidcRoot     = "/oidc"
	CallbackPath = "/callback"
	InitiatePath = "/sso"
)

Default paths for handling OIDC requests.

Variables

This section is empty.

Functions

func RegisterAPIHandler

func RegisterAPIHandler(e *echo.Echo, s *Service)

RegisterAPIHandler enables OIDC-related endpoints.

Types

type IDTokenClaims

type IDTokenClaims struct {
	AuthenticationClaim string   `json:"authentication_claim"`
	DisplayName         string   `json:"display_name"`
	Groups              []string `json:"groups"`
}

IDTokenClaims represents the set of claims in an OIDC ID token that we're concerned with.

type Service

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

Service handles OIDC interactions.

func New

func New(db *db.PgDB, config config.OIDCConfig, pachEnabled bool) (*Service, error)

New initiates an OIDC Service.

Jump to

Keyboard shortcuts

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