Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »


URAC Tenant Configuration Sample
{
   "commonFields": {
     "mail": {
        "from": 'me@localhost.com',
        "transport": {
           "type": "sendmail",
           "options": {}
        }
     }
   },
   "urac": {
      "passportLogin": {
  		"twitter": {
     		"clientID": "TWITTER_CLIENT_ID",
     		"clientSecret": "TWITTER_CLIENT_SECRET",
     		"callbackURL": "http://local-widget.com/urac/login/success",
     		"userProfileURL": "https://api.twitter.com/1.1/account/verify_credentials.json?include_email=true"
  		},
  		"facebook": {
     		"clientID": 'FACEBOOK_CLIENT_ID',
     		"clientSecret": 'FACEBOOK_CLIENT_SECRET',
     		"callbackURL": "http://local-widget.com/urac/login/success?mode=facebook"
 		},
  		"google": {
   			"clientID": 'GOOGLE_CLIENT_ID',
            "clientSecret": 'GOOGLE_CLIENT_SECRET',
            "callbackURL": "http://local-widget.com/urac/login/success"
         },
  		 "github": {
      		"clientID": "GITHUB_CLIENT_ID",
      		"clientSecret": "GITHUB_CLIENT_SECRET",
    	    "callbackURL": "http://127.0.0.1:3000/auth/github/callback"
  		 }
	  },
      "hashIterations": 1024, //used by hasher
      "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"
         }
      }
   }
}
  • No labels