Introduction
To connect to Secure Web Services endpoints, we need to be authenticated to request data from the server. So we need to add authorization information to connect to secure Web Services.
Prerequisites
- You have ShortPoint version 6.6.x.x or later;
- You use Web Service connection type.
Solution
ShortPoint Web Service connection type has a possibility to define authentication method to retrieve data from web server. You can select one of the following options for the Authentication type:
Anonymous authentication type
Select this authentication type if you don't need to pass any authorization information:
Basic (Username / Password) authentication type
Select this authentication type if your web service requires a verified username and password to access data:
API Key authorization type
Select this authentication type to enable custom key and value-based authorization. This pair can be sent either header or query string parameter.
Advanced authentication type
Select this authentication type if you need to define authorization header programmatically. Using simple JavaScript code, you can pass custom authorization header value. The result of the JavaScript code will be passed to authorization header of your Web Service.