Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Examples

...

Introduction

Pin code configuration in each layer (Default, Registry, and Service (tenant))

NameType DescriptionExample
charLengthintegerLength of Pin Code6
charactersstringCharacters allowed to be used for Pin Code01234

Examples

Custom registry

create under custom registry an entry with the following label: pinConfiguration

{ "pinConfiguration":
Code Block
languagejs
titlePin configuration
pinConfiguration
{
		"charLength": 4,
		"characters": "0123456789"
	}
}

...

Provision

Code Block
languagejs
titleURAC 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'
			}
	  }
  }
}