Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrPermissionDenied = errors.New("permission denied")
Functions ¶
func NewAuthInterceptor ¶
func NewAuthInterceptor(opts ...Option) *authInterceptor
Types ¶
type AuthHolder ¶
type AuthHolder struct {
// contains filtered or unexported fields
}
type Authentication ¶
func FromContext ¶
func FromContext(ctx *context.Context) *Authentication
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
Click to show internal directories.
Click to hide internal directories.