Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not being redirected to the sign in portal - just a white sign in box shows #36

Open
jaycdave88 opened this issue Jan 20, 2017 · 1 comment

Comments

@jaycdave88
Copy link

jaycdave88 commented Jan 20, 2017

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();
        }
}

`

@daboxu
Copy link
Contributor

daboxu commented Feb 27, 2017

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants