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.
BTW saw this note in the auth section of the product documentation
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
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?
@dr_venture Thank you for getting back, have been scratching head over this for a while now!