Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrPermissionDenied = errors.New("permission denied")
Functions ¶
func NewAuthInterceptor ¶
func NewAuthInterceptor(opts ...Option) connect.Interceptor
Types ¶
type AuthHolder ¶
type AuthHolder struct {
// contains filtered or unexported fields
}
type Authentication ¶
func FromContext ¶
func FromContext(ctx *context.Context) Authentication
type AuthenticationProvider ¶ added in v0.30.0
type SimpleAuth ¶
type SimpleAuth struct { Authentication // contains filtered or unexported fields }
func (*SimpleAuth) Principal ¶
func (s *SimpleAuth) Principal() Principal
func (*SimpleAuth) Roles ¶
func (s *SimpleAuth) Roles() []Role
type SimplePrincipal ¶
type SimplePrincipal struct { Principal // contains filtered or unexported fields }
func (*SimplePrincipal) Name ¶
func (s *SimplePrincipal) Name() string
type TenantAuth ¶ added in v0.31.0
type TenantAuth struct {
// contains filtered or unexported fields
}
func (*TenantAuth) GetId ¶ added in v0.31.0
func (s *TenantAuth) GetId() uint32
func (*TenantAuth) Principal ¶ added in v0.31.0
func (s *TenantAuth) Principal() Principal
func (*TenantAuth) Roles ¶ added in v0.31.0
func (s *TenantAuth) Roles() []Role
type TenantAuthentication ¶ added in v0.31.0
type TenantAuthentication interface { Authentication GetId() uint32 // returns the tenant id }
Click to show internal directories.
Click to hide internal directories.