identity
Version:
Identity client
55 lines (48 loc) • 908 B
JavaScript
/**
* identity configuration.
*/
exports.default = {
identity: function(api){
return {
site: 'http://my-identity-server.com',
id: 'my_id',
secret: 'my_secret',
/*
roles: {
admin:{
name: 'Administrator'
},
user:{
name: 'User',
entities: [{
type: 'value',
name: 'MyValues',
allow_multiple: true,
allow_blank: false
},{
type: 'boolean',
name: 'is awesome'
}]
}
}
*/
}
},
errors: function(api){
return {
'_toExpand': false,
insufficient_permissions: 'insufficient permissions'
}
}
}
/*
exports.test = {
identity: function(api){
return {
site: 'http://localhost:3000',
id: 'my_id',
secret: 'my_secret'
}
}
}
*/