auth

package
v1.5.6 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

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

Authenticator implements the OIDC authentication We have two verifiers to allow tokens with or without the 'spn' token.

func NewAuthenticator

func NewAuthenticator(appConfig *config.AppConfig, m monitoring.MetricsI) (*Authenticator, error)

NewAuthenticator creates new Authenticator

func (*Authenticator) VerifyGroupAccess added in v1.4.0

func (a *Authenticator) VerifyGroupAccess(group string) echo.MiddlewareFunc

VerifyGroupAccess verifies if the identity that performed the request is part of the configured authorized group

func (*Authenticator) VerifyToken

func (a *Authenticator) VerifyToken() echo.MiddlewareFunc

VerifyToken verifies if the JWT token from request header is valid

type Error

type Error struct {
	Errors map[string]interface{} `json:"errors"`
}

Error struct

func NewError

func NewError(err error) Error

NewError constructor

Jump to

Keyboard shortcuts

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