authn

package
v0.3.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 9 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, internalOIDCAuthority string, clientTlsConfig *tls.Config) (JWTAuth, error)

func (JWTAuth) GetAuthConfig

func (j JWTAuth) GetAuthConfig() common.AuthConfig

func (JWTAuth) ValidateToken

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

type OIDCServerResponse

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

type OauthServerResponse

type OauthServerResponse struct {
	TokenEndpoint string `json:"token_endpoint"`
}

type OpenShiftAuthN

type OpenShiftAuthN struct {
	OpenShiftApiUrl string
	ClientTlsConfig *tls.Config
}

func (OpenShiftAuthN) GetAuthConfig

func (o OpenShiftAuthN) GetAuthConfig() common.AuthConfig

func (OpenShiftAuthN) ValidateToken

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

Jump to

Keyboard shortcuts

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