0.0.3 • Published 4 years ago
oristaticauthz v0.0.3
#Install
origamicore Doc #Config
{ }
#Example config.js
var roles = UserType:{
admin:0x00000001,
supervisor:0x00000004,
user:0x00000008,
userAuth:0x00000010,
}
module.exports =[
{
id: '1',
name: 'module',
type: 'base',
isNpm:true,
config:{
drivers:[
{name:"global"}
]
}
},
{
id: '2',
name: 'module',
type: 'staticauthz',
isNpm:true,
config:{
}
},
{
id: '4',
name: 'module',
type: 'endpoint',
isNpm:true,
config: {
connections: [{
name: 'PublicSite',
authz:{domain:'staticAuthz'},//<-----------------
'type': 'express',
sessionManager: 'sessionRedis',
protocol: {
type: 'http',
port: 9101
},
public: ['./public']
}]
}
},
]