Documentation
¶
Index ¶
- func AuthMiddleware(backendRepo repository.BackendRepository, ...) echo.MiddlewareFunc
- func HasPermission(authInfo *AuthInfo) bool
- func WithAssumedStubAuth(next func(ctx echo.Context) error, ...) func(ctx echo.Context) error
- func WithAuth(next func(ctx echo.Context) error) func(ctx echo.Context) error
- func WithClusterAdminAuth(next func(ctx echo.Context) error) func(ctx echo.Context) error
- func WithStrictWorkspaceAuth(next func(ctx echo.Context) error) func(ctx echo.Context) error
- func WithWorkspaceAuth(next func(ctx echo.Context) error) func(ctx echo.Context) error
- type AuthInfo
- type AuthInterceptor
- type HttpAuthContext
- type Signature
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthMiddleware ¶
func AuthMiddleware(backendRepo repository.BackendRepository, workspaceRepo repository.WorkspaceRepository) echo.MiddlewareFunc
func HasPermission ¶
func WithAssumedStubAuth ¶
func WithClusterAdminAuth ¶
func WithStrictWorkspaceAuth ¶
This prevents users with restricted tokens from accessing an api endpoint even if they have access to the workspace.
Types ¶
type AuthInterceptor ¶
type AuthInterceptor struct {
// contains filtered or unexported fields
}
func NewAuthInterceptor ¶
func NewAuthInterceptor(config types.AppConfig, backendRepo repository.BackendRepository, workspaceRepo repository.WorkspaceRepository) *AuthInterceptor
func (*AuthInterceptor) Stream ¶
func (ai *AuthInterceptor) Stream() grpc.StreamServerInterceptor
func (*AuthInterceptor) Unary ¶
func (ai *AuthInterceptor) Unary() grpc.UnaryServerInterceptor
type HttpAuthContext ¶
Click to show internal directories.
Click to hide internal directories.