You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am coding against the OneDrive.SDK.Authentication lib in my console application. When I go to execute the application I get just a white window and nothing else, I would imagine that I should be prompt to enter my credentials?
Code:
class Program
{
[STAThread]
static void Main()
{
RunTask().Wait();
}
static async Task RunTask(OneDriveClient oneDriveClient = null)
{
if (oneDriveClient == null)
{
var msaAuthenticationProvider = new MsaAuthenticationProvider("33d64d8d-77a3-4d4c-b837-6c4798671038", "https://login.live.com/", new[] { "onedrive.readonly", "wl.signin" });
await msaAuthenticationProvider.AuthenticateUserAsync();
}
}
`
The text was updated successfully, but these errors were encountered:
hi @jaycdave88 , right now the Desktop version does rely on an WebUI component which I received notice about it won't work with console app, will my answer to get OAuth endpoint for Asp.net web app help you here #21? Based on my thoughts, you can implement IAuthProvider with OAuth url generated by OAuthHelper to talk to OAuth endpoint via HTTP request. Feel free to send us a console version authprovider if you find a way out. Thanks!
I am coding against the
OneDrive.SDK.Authentication
lib in my console application. When I go to execute the application I get just a white window and nothing else, I would imagine that I should be prompt to enter my credentials?Code:
`
The text was updated successfully, but these errors were encountered: