Share via

Simulate Microsoft Account Login

Nadezhda Balkandzhiyska 11 Reputation points
2022-01-31T11:04:55.057+00:00

Hello,

I have a website using Microsoft Account login to authenticate all users. In order to automate the website, I need to simulate the Microsoft Account login. So, I followed the same authentication flow that I identified in my browser.

The second step I go through is POST to login.microsoftonline.com/common/GetCredentialType?mkt=en-US

  • I made a POST using JSON format to pass the username and isOtherIdpSupported.

This step is working as expected and I get the expected response verifying that the user has password to continue with the login, but after the 10th attempt I receive an incorrect response from the server that the submitted username does not exist, but in reality it exists.

However, on retrying, this username successfully goes through this step. So I had the following question:

Is it possible that I do not provide all of the necessary parameters for the request or may I hit some corner case of the GetCredentialType api?

Thanks a lot in advance.

Best regards,
Nadezhda

Developer technologies | ASP.NET Core | Other

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.