Skip to content
This repository was archived by the owner on Nov 11, 2025. It is now read-only.
mickhansenPublic archive

About

Easily set the ssacl actor from koa

Resources

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

koa-ssacl

Easily set the ssacl actor from koa

Automatically manages the CLS namespace for ssacl/sequelize allowing you to simply do:

koa.use(function *(next) {
  this.actor = this.request.user.id;
  yield next;
});

koa.use(require('koa-ssacl')());

Note if already using sequelize with CLS koa-ssacl will automatically use that namespace instead of generating it's own.

About

Easily set the ssacl actor from koa

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages