/
OAuth tokens
OAuth tokens
Database Information
Database Name | Database Type | Collection Name |
---|---|---|
core_provision | MongoDB | oauth_token |
Record Explanation
Field Name | Type | Mandatory | Unique | Indexed | Description |
---|---|---|---|---|---|
_id | Mongo ID | YES | YES | YES | Mongo Record ID |
token | String | YES | YES | YES | oAuth Refresh Token value: refresh_token, password |
clientId | String | YES | NO | NO | Id of the Client |
user | Object | YES | NO | NO | The oAuth UserĀ |
expires | Number | NO | NO | NO | The 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" };