function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Single Sign-On for desktop app?

Can we use Single Sign-On to authenticate from a desktop application in .net?


I've an Excel addin which I want to use Single Sign-On ... is this feasible? If so ... then any help would be appreciated. 


I've samples online but they are in but I'm not sure how it can be turned out into a desktop app. 


What exactly do you want to accomplish with SSO?


I have a console app that takes a username/password for an existing SF account and logs in via OAuth and downloads data (leads & contacts) from my instance. Working on a blog post that will be up in the next day or so for self-documentation so I don't lose it.


I want to implement SSO in a desktop app which is kind of similar to Console App. My current code validates  Login by Username, Password & Security Token. And I want to change it to use a shared or common single username provided by Org Admin to users for SSO login, the user org does not use security tken mechanism to login users from outside environment.


If it is possible then please share ur code for login wiht me, I would really appreciate it :) ... you can email me at Thanks.