I have a requirement to write a C# application which will connect to SharePoint Online document libraries and allow users to import content from the library (doc libraries are replacing old network drives). Our Office 365 tenancy uses SSO provided by an on-premises ADFS server (fully federated identity) for authentication.
I'm thinking that in order to connect to the document library, I will need to request some kind of authorisation token from the ADFS server to pass into the login URL for SharePoint Online when connecting to the doc library. I've never had to do anything like this before though, so I was wondering if anyone on here had done anything similar, or had any good tips on where to start? The application will only be running on domain-joined machines, so there's no requirement to consider off-network scenarios.
Very grateful for any advice!