Can some one help to solve this error
Error Details :
{"fault":{"faultstring":"Invalid ApiKey","detail":{"errorcode":"oauth.v2.InvalidApiKey"}}}
If there are Accepted Answers, those will be shown by default. You can switch to 'All Replies' by selecting the tab below.
Hi @Balaram Barada, I see you're using the 'authorization_code' flow. Normally you would use the 'client_credentials' flow. Can you try that? Something like this:
Hi @jpluimers ,
Thanks for your update , I have tried with client_credentials but still facing same error
Response:
{ "fault": { "faultstring": "Invalid ApiKey", "detail": { "errorcode": "oauth.v2.InvalidApiKey" } } }
Hello,
This usually means that the client_id is not authorized for the specific tenant. Can you check, in Admin center, that you have an active plan, that your application is not expired and that you can access your tenant and app?
Hi @LazarescuA ,
Thanks for your update , still i am facing the same issue .
1.Please suggest any guide or steps to verify tenant and client_id mapping .
2. Could you please answer my below query related to trait difinition API
Swagger API : https://developer.opentext.com/services/products/content-metadata-service/apis/content-metadata#Trait/createTraitDefinition
Is attribute properties are fixed or Can we add a custom property to attribute i.e like the below examples custom1,custom2, custom3 ?
Example :
"attributes": [ { "default_value": "", "data_type": "string", "read_only": false, "repeating": false, "required": false, "searchable": true, "sortable": false, "visible": true, "unique": false, "presentation_type": "TextArea","custom1":"", "custom2":"", "custom":[], "flow": "new", "display_name": "bbtarea4", "display_name_multilingual": { "en": "bbtarea4" }, "id": null, "name": "bbtarea4", "size": 2000, "custom_sequence": 1, "localizable": true, "url": "/trait-definitions/bbt4/attributes", "validators": [ { "type": "length_validator", "operation": "Create", "params": [ { "name": "min", "value": "1" } ] } ] } ]
Hello @Balaram Barada ,
For 1, please follow the steps:
a. Login to developer.opentext.com
b. Go to "Console" → "YOUR_ORGANIZATION_NAME"
c. Take note of the region (the geography after your organization name: US, CA, AU, EUPROD, NABT, NAPROD)
d. Click on your organization to enter the Admin Center:
e. Check that you still have a developer plan valid and it is not expired. Then, go to the "Plan management" → "Plans" and make sure you have at least a Developer plan that is not expired.
f. Go to "App Management" → "Apps" and click on the application you want to login with:
g. Click on the App and then on "Service clients" and make sure the client id you are using is listed there as the confidential client id:
h. Click on Subscriber tenants and check that the tenant ID you are using in the Auth URL is present there:
i: Now, you can test the Authentication by using the authentication URL for your region (see step c) and this article: https://developer.opentext.com/cloud-platform/documentation/authentication , use the client_credentials grant type, client_id from step g and secret that you saved when the application was created. If you don't have it anymore, you can always regenerate the Confidential Client ID.
I hope this helps.
PS: for number 2, please open a new thread as it will complicate this one if we answer 2 topics in the same one.
Thanks for your update , will create the tenant and client id as suggested and revert you the progress.