Forum Discussion
- Fox879 years agoNew Contributor
Sure Rao,
Just to be clear the steps I used for oAuth are as follows:
1. For the REST request step I click on the Auth tab (where I have created and added a new authorization)
2. Click on get token
3. Set the details for the client identification, authorization URI, Redirect URI
4. Click on the Automation tab
5. Write the code:
if (document.getElementById("Email")) {
document.getElementById("Email").value = "xxxx@gmail.com";
document.getElementById("next").click();setTimeout(function()
{if (document.getElementById("Passwd")) {
document.getElementById("Passwd").value = "password";
document.getElementById("signIn").click();
}
}, 1000);
}6. Run the code: It works as expected and the login window is opened, the credentials added and clicks on the sign in button
7. The token is generated and can be used in the request
Now my problem:
If I send the request now everything works as expected (because I have the token) but if I delete the token and send the request without running the code within the Automation window (to retrieve the token), it fails.
Have you ever had this issue? Were you able to make it work without the need to run the automation code manually before sending the request?
Thanks
Related Content
- 2 years ago
- 5 years ago
- 7 years ago
- 3 years ago
Recent Discussions
- 3 days ago