Expand my Community achievements bar.

Adobe Experience Platform (AEP) & Apps User Groups are live to Network, learn, and share in your regional locations.
SOLVED

How to obtain my bearer token from an Adobe Launch extension?

Avatar

Level 1

I'm currently developing a Data Collection (Launch) extension where I'll be utilizing the reactor.adobe.io API from within the extension.

 

Everything works great, but I'm required to update my bearer token every 24 hours manually.

 

I want the extension to automatically fetch a new bearer token when the old one expires.

 

To that end, I'm trying to refresh my bearer token from the endpoint ("https://ims-na1.adobelogin.com/ims/token/v3") when the token expires, but I'm receiving a CORS error.

 

Is this a feasible approach, or is there a better way to use the reactor API from within a data collection (launch) extension to avoid the CORS error?

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hello @u103638  - Do you need to do this on client side? I would recommend passing this logic to event forwarding and there you have a way using secrets to automatically make an API call to fetch access token which refreshes automatically after a certain time and later can be utilized in making the subsequent calls.

 

Thanks,

Arpan

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hello @u103638  - Do you need to do this on client side? I would recommend passing this logic to event forwarding and there you have a way using secrets to automatically make an API call to fetch access token which refreshes automatically after a certain time and later can be utilized in making the subsequent calls.

 

Thanks,

Arpan