I have a Win Form Application(not in Intranet) where I would like to implement a functionality where you can insert your AD Credentials and the application should connect to our AD through the web published ADFS (the standard https://[adfsurl]/adfs/ls/idpinitiatedsignon.aspx) and get those info (for example the AD group you belong to).
I started researching but most of the examples are for ASP.NET and MVC or WIF in a intranet scenario.
What approach would you suggest?
I was finally able to make it work, I had to create a new application in the ADFS and generate a self-signed cert.
Here is the code: