Dear SharePoint community,
I need to be able to access SharePoint online API's in an environment that uses PingIdentity to provide SSO to Office 365.
When a user requests a https://mycompany.sharepoint.com/somesite
- They are redirected to login.microsoftonline.com and asked for their "email" account.
- They are then taken to Ping Identity login page. They are asked here for a password.
- Once they present the password, they are now taken to https://mycompany.sharepoint.com/somesite with rtfa / fedAuth cookies present in the request headers which allows them to now access the protected resources.
I was able to get this exact same scenario working via REST API for ADFS as high-level documented here:
Does anyone have the equivalent of how to make REST api requests to obtain the cookies from PingIdentity/Microsoft Login in this scenario? I can use SOAP, REST, or C# to do it. Whatever works to generate the fedAuth and rtfa cookies I can use? Postman, soapUI, code snippets, or high-level description, anything.