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 5 Next »

The data below describes how the user record is saved in session after the user is logged in.



Field NameTypeDescription
_idMongo IDMongo Record ID
usernameStringThe UserName
firstNameStringThe User First Name
lastNameStringThe User Last Name
emailStringThe User Email
statusStringThe User Status.
profileObjectAdditional User Info.
socialLoginObjectInformation pertaining to login integration with social platforms. Only available in case the user logged in with passport; and will contain only one object, which will be the current logged in social account.

%strategy%ObjectThe social platform name. facebook, google, twitter, etc


idStringThe id of the user at the social platform


accessTokenStringAn access token that can be used to validate if the social user account is still valid
configObject


Field NameTypeMandatoryUniqueIndexedDescription
keysObjectYESNONO Overridden ACL Keys
packagesObjectNONONO Overridden ACL Packages
tenantObject


Field NameTypeMandatoryUniqueIndexedDescription
idStringYESNONOTenant ID
codeStringYESNONOTenant Code 
groupsArrayArray Of Group Codes
tsTime stamprecord created timestamp


Sample


User Record Sample
var data = {
   "_id": ObjectId('54ee1a511856706c23639308'),
   "username": "owner",
   "firstName": "owner",
   "lastName": "owner",
   "email": "owner@soajs.org",
   "ts": 1460024840683,
   "status": "active",
   "profile": {},
   "socialLogin": {
      "facebook": {
         "id": "10153921831136546",
         "accessToken": "EAAEtfZBue5g4BAHxZC795RjLBHzM044Rd1lqJDMUzj1FNDkZD"
      }
   },
   "groups": [
      "owner"
   ],
   "config": {
      "packages": {},
      "keys": {}
   },
   "tenant": {
      "id": "5551aca9e179c39b760f7a1a",
      "code": "DBTN"
   }
}
  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.