Local Configuration (Default) config.js | Registry Configuration (Per Environment) req.soajs.registry | Tenant Configuration (Per Tenant Per Environment) | Type | Description | Example | |||||
---|---|---|---|---|---|---|---|---|---|---|
Settings | Custom | |||||||||
pinConfiguration | Object | |||||||||
Char Length | Integer | Length of Pin | ||||||||
Characters | String | characters allowed to be used for Pin | ||||||||
Pin Configuration | Object | |||||||||
Char Length | Integer | Length of Pin | ||||||||
Characters | String | characters allowed to be used for Pin | ||||||||
URAC | Object | |||||||||
Pin Configuration | Object | |||||||||
Char Length | Integer | Length of Pin | ||||||||
Characters | String | characters allowed to be used for Pin | ||||||||
pin | integer | pin code | ||||||||
tokenExpiryTTL | integer | token expiry limit in seconds | ||||||||
link | Object | Link values that are attached in the content of email notifications | ||||||||
model | Object | |||||||||
validateJoin | boolean | Set to true if registration needs validation confirmation | ||||||||
hashIterations | integer | Hashing Iteration value used by SOAJS hasher to encrypt/compare passwords | ||||||||
seedLength | integer | Seed Length value used by SOAJS hasher to encrypt/compare passwords | ||||||||
optionalAlgorithm | string | Hash algorithm name | ||||||||
passportLogin | Define application keys for passport integration. Currently supporting: Twitter - Facebook - Google | |||||||||
Object to configure the mail notifications content. Each type of notification is an entry in this object where you can configure a custom mail subject, link it to a template or inject html content directly. | ||||||||||
transport | Object | To configure connection with mail provider | ||||||||
subject | string | Mail Subject | ||||||||
from | string | from email | ||||||||
path | string | Template Path | ||||||||
content | string | You either use custom mail content or you use mail template path |
Examples
Pin Configuration Example
Pin configuration
{ "pinConfiguration": { "charLength": 4, "characters": "0123456789" } }
URAC Object Example
URAC in Tenant configuration
{ "urac": { "pinConfiguration": { "charLength": 4, "characters": "0123456789" }, hashIterations: 16, seedLength: 32, link: { addUser: 'http://dashboard.soajs.org:80/#/setNewPassword', changeEmail: 'http://dashboard.soajs.org:80/#/changeEmail/validate', forgotPassword: 'http://dashboard.soajs.org:80/#/resetPassword', join: 'http://dashboard.soajs.org:80/#/join/validate' }, tokenExpiryTTL: 172800000, validateJoin: true, mail: { join: { subject: 'Welcome to SOAJS', path: 'undefined/soajs/node_modules/soajs.urac/mail/urac/join.tmpl' }, forgotPassword: { subject: 'Reset Your Password at SOAJS', path: 'undefined/soajs/node_modules/soajs.urac/mail/urac/forgotPassword.tmpl' }, addUser: { subject: 'Account Created at SOAJS', path: 'undefined/soajs/node_modules/soajs.urac/mail/urac/addUser.tmpl' }, changeUserStatus: { subject: 'Account Status changed at SOAJS', path: 'undefined/soajs/node_modules/soajs.urac/mail/urac/changeUserStatus.tmpl' }, changeEmail: { subject: 'Change Account Email at SOAJS', path: 'undefined/soajs/node_modules/soajs.urac/mail/urac/changeEmail.tmpl' } } } }
0 Comments