How to automate azure website login implemented by ADFS + WIA

joy ni 0 Reputation points
2023-06-28T13:40:56.63+00:00

Hi

I am a test automation engineer, currently automating UI tests for an azure website that authenticates users by Windows Integrated Authentication + Azure Directory Federation Services.

Manually, the user goes to the homepage first where a 'login' button can be clicked. A click on the login button redirects the user to a different URL like 'logintest....' for ADFS login. Here the site shows a pop-up windows system authentication dialogue. Once the user types in correct windows credentials, the authentication passes and sends the user back to the site with the logged in session.

My question is how we can automate this authentication by username and password. I have tried many mainstream automation tools, but cannot find a solution. Someone suggest that I could use azure / windows powershell script to help automation, but I am not sure how.

Is it even possible to automate this? If so, could you give me a direction?

Thanks.

John

Microsoft Security | Active Directory Federation Services
0 comments No comments
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.