Question

Get Token from Plugin SDK

  • 23 May 2023
  • 1 reply
  • 13 views

Badge

Building a plugin using the plugin SDK and now I need to use the Core API to create a comment on a ticket. Instead of handling API Tokens or going through the OAuth dance, is it possible to just get an appropriate token from the Plugin SDK to use for Core API requests?


1 reply

Userlevel 1
Badge +4

Hi arvind,

OAuth clients are primarily used to make CoreAPI requests without needing to request API tokens from users of your integration.  The Plugin SDK has access to the immediate conversation in Front without OAuth.  But, for security reasons, Core API requests can't be made from within the plugin.   Your plugin server would need to make the Core API requests and present the response data in the plugin itself.

Reply