Open colin-mckibben-sp opened 2 years ago
When evaluating the following transform:
{ "id": "d0f06a5a-4d79-438e-8e3d-9e4f6ed879d4", "name": "AccountAttribute", "type": "accountAttribute", "attributes": { "sourceName": "Employees", "attributeName": "e-mail" }, "internal": false }
I get the following error: https://devrel.api.identitynow.com/v3/sources?filters=name eq "Employees" or id eq "Employees" --> Unauthorized
https://devrel.api.identitynow.com/v3/sources?filters=name eq "Employees" or id eq "Employees" --> Unauthorized
The debug logs for the extension are as follows:
> IdentityNowResourceProvider.readFile m {scheme: 'idn', authority: 'devrel.identitynow.com', path: '/v3/transforms/d0f06a5a-4d79-438e-8e3d-9e4f6ed879d4/AccountAttribute', query: '', fragment: '', …} > IdentityNowResourceProvider.lookupResource m {scheme: 'idn', authority: 'devrel.identitynow.com', path: '/v3/transforms/d0f06a5a-4d79-438e-8e3d-9e4f6ed879d4/AccountAttribute', query: '', fragment: '', …} tenantName = devrel.identitynow.com out/extension.js:516 path = /v3/transforms/d0f06a5a-4d79-438e-8e3d-9e4f6ed879d4 out/extension.js:516 > IdentityNowResourceProvider.stat m {scheme: 'idn', authority: 'devrel.identitynow.com', path: '/v3/transforms/d0f06a5a-4d79-438e-8e3d-9e4f6ed879d4/AccountAttribute', query: '', fragment: '', …} > IdentityNowResourceProvider.lookupResource m {scheme: 'idn', authority: 'devrel.identitynow.com', path: '/v3/transforms/d0f06a5a-4d79-438e-8e3d-9e4f6ed879d4/AccountAttribute', query: '', fragment: '', …} tenantName = devrel.identitynow.com out/extension.js:516 path = /v3/transforms/d0f06a5a-4d79-438e-8e3d-9e4f6ed879d4 out/extension.js:516 > getResource /v3/transforms/d0f06a5a-4d79-438e-8e3d-9e4f6ed879d4 out/extension.js:516 endpoint = https://devrel.api.identitynow.com/v3/transforms/d0f06a5a-4d79-438e-8e3d-9e4f6ed879d4 out/extension.js:516 > getResource /v3/transforms/d0f06a5a-4d79-438e-8e3d-9e4f6ed879d4 out/extension.js:516 endpoint = https://devrel.api.identitynow.com/v3/transforms/d0f06a5a-4d79-438e-8e3d-9e4f6ed879d4 out/extension.js:516 > getSessions (1) ['84aa02826f7f46518d72f302289c87d1'] > getSessionByTenant 84aa02826f7f46518d72f302289c87d1 out/extension.js:516 WARNING: no token for tenant 84aa02826f7f46518d72f302289c87d1 out/extension.js:516 INFO: accessToken is expired. Updating Access Token out/extension.js:516 > createAccessToken devrel.identitynow.com 1758c03fdbf64401876f69b6c6e2c7b7 out/extension.js:516 Successfully logged in to IdentityNow out/extension.js:516 < getSessionByTenant for 84aa02826f7f46518d72f302289c87d1 out/extension.js:516 < getSessions out/extension.js:516 Evaluating transform... out/extension.js:549 ################### item= m {scheme: 'idn', authority: 'devrel.identitynow.com', path: '/v3/transforms/d0f06a5a-4d79-438e-8e3d-9e4f6ed879d4/AccountAttribute', query: '', fragment: '', …} devrel.identitynow.com out/extension.js:549 TenantName = devrel.identitynow.com out/extension.js:549 >>> Evaluating transform 'AccountAttribute' out/extension.js:549 > getTransformType {id: 'd0f06a5a-4d79-438e-8e3d-9e4f6ed879d4', name: 'AccountAttribute', type: 'accountAttribute', attributes: {…}, internal: false} > isValidTransformType accountAttribute out/extension.js:549 >>> Transform type 'accountAttribute' out/extension.js:549 > requiresInput accountAttribute out/extension.js:549 < Requires input false out/extension.js:549 > evaluateTransformOfType accountAttribute {sourceName: 'Employees', attributeName: 'e-mail'} Entering method accountAttribute out/extension.js:549 >>> Required attribute 'sourceName': 'Employees' out/extension.js:549 >>> Required attribute 'attributeName': 'e-mail' out/extension.js:549 > getSourceId Employees out/extension.js:516 endpoint = https://devrel.api.identitynow.com/v3/sources?filters=name eq "Employees" or id eq "Employees" out/extension.js:516 > getSessions (1) [''] > getSessionByTenant out/extension.js:516 WARNING: no token for tenant out/extension.js:516 INFO: accessToken is expired. Updating Access Token out/extension.js:516 WARNING: no credentials for tenant out/extension.js:516 < getSessionByTenant null out/extension.js:516 < getSessions out/extension.js:516 Unauthorized out/extension.js:516 Source Employees's id=undefined out/extension.js:549 TODO Evaluate optional attributes out/extension.js:549 Source Employees does not exist
Hi, Did you create your tenant with a PAT or an access token? Does the source "Employees" exist?
I used a PAT. And yes, the source exists.
When evaluating the following transform:
I get the following error:
https://devrel.api.identitynow.com/v3/sources?filters=name eq "Employees" or id eq "Employees" --> Unauthorized
The debug logs for the extension are as follows: