After you have seen this HowTo video and read this article you will know how to create and use our default OAuth2 Basic authentication configuration. With this configuration, you can authenticate all your web service requests to Exact Online.
Go to Configurations under Settings in the builder menu on the left.
Create a new configuration and choose the kind OAuth2 Basic.
Go to the Exact Online app center and create an API key for your Exact Online application.
Retreive a Client_id and Client_secret from the Authorization server in Exact Online.
Copy paste these properties (Client_id and secret) to the configuration you just created in your Betty Blocks application.
Search in Exact's documentation for the Authorization and Token credential uri's. Both starts with "https://start.exactonline.nl".
Insert an extra authentication attribute to the configuration: response_type = code. This is required to access Exact's API.
Save the configuration and press the button 'Connect' at the bottom of the form.
You are redirect to a login screen from exact, based on the authorization and token credentials uri you have given. Please login to Exact Online. With this login procedure, you authorize access to your Exact Online data.
After you have logged in, Exact redirects you to the given redirect url in the API key registration.
As it all went well, your created configuration is now connected to your Exact Online app. Assign this configuration to a web service.
Go to Webservices under Tools in the builder menu left.
Create a new web service or use an existing one.
Choose the Authentication configuration we just created.
Create a web service endpoint and test if the authentication works?