authn

package
v0.2.1 Latest Latest
Warning

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

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

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