IIntegrationServiceConnectorAuth that has one method, Authenticate.
IIntegrationServiceConnectorAuth Interface
TheIIntegrationServiceConnectorAuth interface declares one method, Authenticate. It accepts one parameter, an AuthenticationRequest, which contains the signed JWT security token that must be validated by the ERP Connector web service.
Authenticate method must return an AuthenticationResponse, which contains three properties:
Using the IntegrationServiceConnectorAuth Implementation
The biggest challenges with leveraging the new interface are:- Adding the NuGet package.
- Specifying an application identifier.
- Reading in the private certificate key from a file.
AppSettings to get the application identifier for the ERP Sync Connector. Next is a call to a helper method to read in the private key file associated with the ERP Syn Connector app. Those two pieces of information are passed into the IntegrationServiceConnectorAuth constructor and the IntegrationServiceConnectorAuth.Authenticate method is called to validate the request. Finally, the result is returned and that’s all there is to it.
As you can see, implementing the new interface to support ERP Connectors in SuperOffice Online is very easy. SuperOffice providers all of the bits necessary to made it work, you just need to add a few lines of code in your new or existing connectors and that’s about it.