authn

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AAPUser added in v0.6.0

type AAPUser struct {
	Username string `json:"username,omitempty"`
}

type AAPUserInfo added in v0.6.0

type AAPUserInfo struct {
	Results []AAPUser `json:"results,omitempty"`
}

type AapGatewayAuth added in v0.6.0

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

func NewAapGatewayAuth added in v0.6.0

func NewAapGatewayAuth(gatewayUrl string, externalGatewayUrl string, clientTlsConfig *tls.Config) AapGatewayAuth

func (AapGatewayAuth) GetAuthConfig added in v0.6.0

func (a AapGatewayAuth) GetAuthConfig() common.AuthConfig

func (AapGatewayAuth) GetAuthToken added in v0.6.0

func (AapGatewayAuth) GetAuthToken(r *http.Request) (string, error)

func (AapGatewayAuth) GetIdentity added in v0.6.0

func (a AapGatewayAuth) GetIdentity(ctx context.Context, token string) (*common.Identity, error)

func (AapGatewayAuth) ValidateToken added in v0.6.0

func (a AapGatewayAuth) ValidateToken(ctx context.Context, token string) error

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) GetAuthToken added in v0.6.0

func (j JWTAuth) GetAuthToken(r *http.Request) (string, error)

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) 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) GetAuthToken added in v0.6.0

func (o K8sAuthN) GetAuthToken(r *http.Request) (string, error)

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) 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