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

Version 1 Next »

Database Information


Database NameDatabase TypeCollection Name
core_provisionMongoDBoauth_token


Record Explanation


Field NameTypeMandatoryUniqueIndexedDescription
_idMongo IDYESYESYESMongo Record ID
refreshTokenStringYESYESYESoAuth Refresh Token value: refresh_token, password
clientIdHashYESNONOId of the Client
userObjectYESNONOThe oAuth UserĀ 
expiresNullNONONOThe expiry value


Sample


oAuth User Record Sample
let data = {
	"_id": ObjectId('54f5c18fb348958b6c3c7fd3'),
	"refreshToken": "refresh_token",
	"clientId": "54f5c18fb348958b6c3c7fd3",
    "user": {
        _id: "5c8d0c505653de3985aa0ffd",
        username: "owner",
        password: "$2a$12$geJJfv33wkYIXEAlDkeeuOgiQ6y6MjP/YxbqLdHdDSK7LDG.7n7Pq",
        firstName: "owner3",
        lastName: "owner",
        email: "me@localhost.com",
        status: "active",
        config: {},
        "ts": 156000,
        tenant: {
            id: "5c0e74ba9acc3c5a84a51259",
            code: "DBTN",
            pin: {
                code: "1235",
                allowed: true
            }
        },
        groups: ["owner"],
        lastLogin: 156000,
        groupsConfig: {
            allowedPackages: {
                DSBRD: [
                    "DSBRD_OWNER"
                ]
            }
        },
        loginMode: "urac",
        id: "5c8d0c505653de3985aa0ffd"
    },
	"expires": "1234567890",
	"env": "dashboard"
};
  • 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.