Versions Compared

Key

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

...

Code Block
languagejs
titleURAC Tenant Configuration Sample
linenumberstrue
{
   "commonFields": {
	     "mailoptionalAlgorithm": {
        "from": 'me@localhost.com',
  "aes256", //used by hasher
     "transporthashIterations": {
           "type": "sendmail",
  12, //used by hasher
        "optionsmail": {}
 
      }      }
   },
   "urac": {
      "passportLogin": {
  		"twitter": {
     		"clientID": "TWITTER_CLIENT_ID",
     		"clientSecret": "TWITTER_CLIENT_SECRET",
     		"callbackURL": "http://local-widget.com/urac/login/success""from": 'me@localhost.com',
     		"userProfileURL": "https://api.twitter.com/1.1/account/verify_credentials.json?include_email=true"   		},
  		"facebook"transport": {
     		"clientID": 'FACEBOOK_CLIENT_ID',      		"clientSecrettype": 'FACEBOOK_CLIENT_SECRET',
     		"callbackURL": "http://local-widget.com/urac/login/success?mode=facebook"
 		}"sendmail",
  		"google": {    			"clientID": 'GOOGLE_CLIENT_ID',             "clientSecret": 'GOOGLE_CLIENT_SECRET',
"options": {}
        }
  "callbackURL": "http://local-widget.com/urac/login/success"     }
    },
  		 "githuburac": {

     		"clientID": "GITHUB_CLIENT_ID",
      		"clientSecret": "GITHUB_CLIENT_SECRET",
    	    "callbackURL": "http://127.0.0.1:3000/auth/github/callback"
  		 }
	  }tokenExpiryTTL": 2 * 24 * 3600 * 1000,
      "hashIterationsvalidateJoin": 1024true, //usedtrue byif hasherregistration needs    validation
 "seedLength": 32, //used by hasher
   
        "link": {
         "addUser": "http://dashboard.soajs.org/#/setNewPassword",
         "changeEmail": "http://dashboard.soajs.org/#/changeEmail/validate",
         "forgotPassword": "http://dashboard.soajs.org/#/resetPassword",
         "join": "http://dashboard.soajs.org/#/join/validate"
		....
      },
      "tokenExpiryTTL": 2 * 24 * 3600 * 1000,
      "validateJoin": true, //true
if registration needs validation       "mail": { //urac mail options
         "join": {
            "subject": 'Welcome to SOAJS',
            "path": "./mail/urac/join.tmpl"
         },
         "forgotPassword": {
            "subject": 'Reset Your Password at SOAJS',
            "path": "./mail/urac/forgotPassword.tmpl"
         },
         "addUser": {
            "subject": 'Account Created at SOAJS',
            "path": "./mail/urac/addUser.tmpl"
         },
         "changeUserStatus": {
            "subject": "Account Status changed at SOAJS",
            //use custom HTML
            "content": "<p>Dear <b>{{ username }}</b>, <br />Your account status has changed to <b>{{ status }}</b> by the administrator on {{ ts|date('F jS, Y') }}.<br /><br /> Regards,<br/> SOAJS Team. </p>"
         },
         "changeEmail": {
            "subject": "Change Account Email at SOAJS",
            "path": "./mail/urac/changeEmail.tmpl"
         },
		....
      }
   }
}