A set of technologies in .NET for building web applications and web services. Miscellaneous topics that do not fit into specific categories.
Simulate Microsoft Account Login
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