OAuth 2.0 Authorization for windows desktop application using HttpListener
问题 I am writing a windows desktop application with External Authentication(Google, Facebook) in C#. I'm using HttpListener to allow a user to get Barer token by External Authentication Service with ASP.NET Web API, but administrator privileges are required for that and I want run without admin mode. My reference was Sample Desktop Application for Windows. Is this the best practice for external authentication provider from C#? Or is there another way to do that? This is my code to get Barer token