Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

The HTTP plugin provides different authentication methods for the defined Datapointsdatapoints. Although, in some APIs the client request needs to provide authentication information, otherwise the server responds to a client with a 401(Unauthorized) response.

In the normal HTTP Basic Authentication. each Datapoint datapoint can provides provide a username and password to prove their authentication in (Authentication User, Authentication Password) fields. But some Servers provide tokens, the next 2 example examples will handle tokens in both (Basic Authentication, OAuth2 Authentication).


 Basic Basic Authentication 

If Datapoint datapoint needs to provide a token in order to Get or Post request, the token should must be added in the "Additional HTTP Headers". Datapoint requests Datapoint request with the Authorization header that contains the word Basic word followed  followed by a space and the token.

Info
Authorization: Basic YmRmODRjNzBhYzI0NDM5ZDgyOTE5M2FiMjI1NDBhMDE6OWI2MTYzMEQ3NmUxNEQ1Mzk0MjgwMTdkNzZBRjhmODY=

...

Basic authentication can also be combined with other authentication methods as explained in Using Multiple Authentication Types like Username and Password.

...

If Datapoint needs to make calls from API that has OAuth 2.0 as authorization protocol you will need also an access token. When passing the access token in an "Additional HTTP Headers" with the Authorization header that contains the word Bearer word followed by a space and the token.

Info
Authorization: Bearer YmRmODRjNzBhYzI0NDM5ZDgyOTE5M2FiMjI1NDBhMDE6OWI2MTYzMEQ3NmUxNEQ1Mzk0MjgwMTdkNzZBRjhmODY=

...