How to achieve Basic authentication using HTTP request building block?

How to achieve Basic authentication using HTTP request building block?

Introduction

Basic Authentication is an authentication scheme built into the HTTP protocol. The client sends HTTP requests with the Authorization header that contains the word Basic followed by a space and a base64-encoded string username: password.

For example, to authorize as "demo/p@55word", the client would send the authentication information in base-64 encoding. HTTP request block is used to call a URL with an HTTP or HTTPS request and optionally use the response data.

Basic Authentication using HTTP Request Building Block

Basic authentication can be achieved with the help of the HTTP Request block. See example below for an HTTP Request block with various fields populated.

Note: You can download the attached case and import the case in Leapwork. See, How to Export and Import test.

For any clarification, contact our Priority Support.

Attachment

Basic_Authentication_Example.zip