Skip to main content
Answer

Get Token from Plugin SDK

  • May 23, 2023
  • 1 reply
  • 177 views

arvind
Forum|alt.badge.img

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?

Best answer by evano

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.

1 reply

Forum|alt.badge.img+5
  • Fronteer
  • Answer
  • May 23, 2023

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.