How to handle Oauth 2 Authentication mechanism(API) in Leapwork?

How to handle Oauth 2 Authentication mechanism(API) in Leapwork?

Introduction
The OAuth 2.0 authorization framework is a protocol that allows a user to grant a third-party website or application access to the user's protected resources, without necessarily revealing their long-term credentials or even their identity.

OAuth 2 Authentication
The following steps are necessary for performing a successful OAuth 2 authentication.

  1. Run application API.
  2. Generate the Client Id and Secret with a redirect URL.
  3. Generate access/authorization token.
  4. Get request sent with the updated headers.
  5. 200 response code received.

An Authorization token can be generated using the command-line block in Leapwork or C# block. Once you have generated the authorization token simply use the HTTP request block to send the request

For any clarification, contact our Priority Support.