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.
- Run application API.
- Generate the Client Id and Secret with a redirect URL.
- Generate access/authorization token.
- Get request sent with the updated headers.
- 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.