Following up with related reported issue around 401 erorr.
I have observed that i cannot use Analytics/target api with "require-adobe-auth" : true.
It all works well when i set it to false.
Find below the error i get when i set to true.
Could somebody help out before i push this app live? does not make sense to have it set to false in production.
aio and node version tried
ext.config.yml when i get that error
inputs:
LOG_LEVEL: debug
companyId: $ANALYTICS_COMPANY_ID
apiKey: $SERVICE_API_KEY
annotations:
require-adobe-auth: true
final: true
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Would you mind posting or sending me the code for that action so we can look at it closer?
BTW saw this note in the auth section of the product documentation
https://www.adobe.io/app-builder/docs/guides/security/
The validator action enabled by require-adobe-auth: true annotation requires the provided IMS access token to have the read_organizations scope. While it is always the case for user tokens used in SPAs, the JWT access tokens used in headless applicationss may not have this scope. This will be the case if it is generated to integrate with the following services:
So check your .env file for a line like this and add read_organizations scope to it
AIO_ims_contexts_devlive__ms__demo__J__1632264104209_meta__scopes=["asset_compute_meta","ent_ccas_sdk"]
Views
Replies
Total Likes
That does not seem like the fix though. Now that I think about it more and look at the error closer.
Is the caller of that action a part of your org and are they passing AUTH header with the request to make that call?
Views
Replies
Total Likes
@dr_venture Thank you for getting back, have been scratching head over this for a while now!
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies