Documentation
¶
Index ¶
Constants ¶
View Source
const (
// DisableAuthEnvKey is the environment variable key used to disable auth when developing.
DisableAuthEnvKey = "FLIGHTCTL_DISABLE_AUTH"
)
Variables ¶
This section is empty.
Functions ¶
func CreateAuthMiddleware ¶
func ParseAuthHeader ¶
Types ¶
type AuthNMiddleware ¶
type AuthNMiddleware interface {
ValidateToken(ctx context.Context, token string) (bool, error)
GetAuthConfig() common.AuthConfig
}
func GetAuthN ¶
func GetAuthN() AuthNMiddleware
type AuthZMiddleware ¶
type AuthZMiddleware interface {
CheckPermission(ctx context.Context, resource string, op string) (bool, error)
}
func GetAuthZ ¶
func GetAuthZ() AuthZMiddleware
type K8sToK8sAuth ¶
func (K8sToK8sAuth) CheckPermission ¶
type NilAuth ¶
type NilAuth struct{}
func (NilAuth) CheckPermission ¶
func (NilAuth) GetAuthConfig ¶
func (a NilAuth) GetAuthConfig() common.AuthConfig
Click to show internal directories.
Click to hide internal directories.