Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccessController ¶
type AccessController struct {
// contains filtered or unexported fields
}
func NewAccessController ¶
func NewAccessController(subjects Subjects, policies Policies) (*AccessController, error)
type JWTAuthenticator ¶
type JWTAuthenticator struct {
// contains filtered or unexported fields
}
func (*JWTAuthenticator) Authenticate ¶
func (authn *JWTAuthenticator) Authenticate(next http.Handler) http.Handler
func (*JWTAuthenticator) Stop ¶
func (authn *JWTAuthenticator) Stop()
type Subjects ¶
type Subjects interface { SetSubject(ctx context.Context, subject Subject) error GetSubjectByDID(ctx context.Context, did string) (Subject, error) GetSubjectsByAttribute(ctx context.Context, attributeKey, attributeValue string) ([]Subject, error) DeleteSubjectByDID(ctx context.Context, did string) error }
Click to show internal directories.
Click to hide internal directories.