Recently I configured SharePoint online on-premise server. I am trying to perform REST API to fetch lists from SharePoint. For that I need to authenticate into SharePoint server. But it throws "404 Not found" on form-based authentication. Before that I am able to authenticate into SharePoint trial version, but using the same source code online on-premise server fails to authenticate.
These are my authentication steps
Get security token using
Get access token using security token from previous request by using
Get form digest value using access token from previous request:
https://mydomain.sharepoint.com/sites/dev/_forms/default.aspx?wa=wsignin1.0 throws "404 Not found error". Why I am getting this error?
Is there any change should I need to support to get successful authentication into SharePoint online on-premise server?
For more details:
SharePoint trial account: mydomain.sharepoint.com
SharePoint online on-premise account: mydomain.sharepoint.com/sites/dev