How to fetch acess token in tasklist plugin

Hi,

I had integrated camunda Spring boot application(embedded) with keycloak and i’m able to login. And i had developed a tasklist plugin to integrate FormIO. This plugin will call an external api. Here I’m facing 401 and message is “Full authentication is required to access this resource”.

My question is how to get acess token into my plugin? How can use it for further requests? Is access token available in any service that are injected by camunda into plugin.js controller?

Thanks
Ajay