Hi, Can someone please provide your input on below query:
I have one web service where account aggregation is using json api which require bearer token which get generated at run time. here I am looking to use some rule which can give new bearer token each time for account aggregation activity.
I am able to create an account for web service connector service using before rule. I am generating jwt token during create account operation which is internally done by before rule.
Could you please suggest me how can I have access token assigned to http operation like account aggregation and entitlement aggregation.
@hranjan3
If you choose the Authentication Method as API Token and keep token value, by default it would be passed to http headers under “Authorization” key, value as “Bearer (your token value)”.
However, it depends on how webservice API Call is taking input. Example, if your API EndPoint need header ‘Autorization’ and value as just ‘Token’ (Without Bearer) then you need to manipulate as below
For account aggregation or entitlement aggregation, you can write a before-operation rule specifically for token generation and patch that rule to both HTTPS operations at their respective index numbers. This will generate a new token every time when the account or entitlement aggregation is triggered.