authn

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2025 License: Apache-2.0 Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JWTAuth

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

func NewJWTAuth

func NewJWTAuth(oidcAuthority string, externalOIDCAuthority string, clientTlsConfig *tls.Config) (JWTAuth, error)

func (JWTAuth) GetAuthConfig

func (j JWTAuth) GetAuthConfig() common.AuthConfig

func (JWTAuth) GetIdentity added in v0.4.0

func (j JWTAuth) GetIdentity(ctx context.Context, token string) (*common.Identity, error)

func (JWTAuth) ValidateToken

func (j JWTAuth) ValidateToken(ctx context.Context, token string) (bool, error)

type K8sAuthN added in v0.4.0

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

func NewK8sAuthN added in v0.4.0

func NewK8sAuthN(k8sClient k8sclient.K8SClient, externalOpenShiftApiUrl string) (*K8sAuthN, error)

func (K8sAuthN) GetAuthConfig added in v0.4.0

func (o K8sAuthN) GetAuthConfig() common.AuthConfig

func (K8sAuthN) GetIdentity added in v0.4.0

func (o K8sAuthN) GetIdentity(ctx context.Context, token string) (*common.Identity, error)

func (K8sAuthN) ValidateToken added in v0.4.0

func (o K8sAuthN) ValidateToken(ctx context.Context, token string) (bool, error)

type OIDCServerResponse

type OIDCServerResponse struct {
	TokenEndpoint string `json:"token_endpoint"`
	JwksUri       string `json:"jwks_uri"`
}

Jump to

Keyboard shortcuts

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