authn

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AAPGatewayUserIdentity added in v0.10.0

type AAPGatewayUserIdentity interface {
	common.Identity
	IsSuperuser() bool
	IsPlatformAuditor() bool
}

type AAPIdentity added in v0.10.0

type AAPIdentity struct {
	common.BaseIdentity
	// contains filtered or unexported fields
}

AAPIdentity extends common.Identity with AAP-specific fields

func (*AAPIdentity) IsPlatformAuditor added in v0.10.0

func (a *AAPIdentity) IsPlatformAuditor() bool

func (*AAPIdentity) IsSuperuser added in v0.10.0

func (a *AAPIdentity) IsSuperuser() bool

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

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, orgConfig *common.AuthOrganizationsConfig) (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 JWTIdentity added in v0.10.0

type JWTIdentity struct {
	common.BaseIdentity
	// contains filtered or unexported fields
}

JWTIdentity extends common.Identity with JWT-specific fields

func (*JWTIdentity) GetClaim added in v0.10.0

func (i *JWTIdentity) GetClaim(claim string) (interface{}, bool)

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"`
}

type TokenIdentity added in v0.10.0

type TokenIdentity interface {
	common.Identity
	GetClaim(string) (interface{}, bool)
}

Jump to

Keyboard shortcuts

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