Scenario: SharePoint 2013 on-premise, ADFS with SiteMinder. We are running CSOM code from a console application and for authentication we are using: https://msdn.microsoft.com/en-us/library/office/hh147177(v=office.14).aspx#bk_addlresource A WebBrowser object is launched, so we can enter credentials, and when navigation is finished, FedAuth cookie is attached to each ClientContext call.
Problem: after 20 minutes FedAuth cookie expires and access denied is launched. How can we refresh the cookie so we can run a long process (several hours)?
Thanks for your help.