locked
problem in skydrive login RRS feed

  • Question

  • hi all,

    I have done an application using skydrive,for that i am login using this code

     private LiveAuthClient authClient;
    

     private static readonly string[] scopes =
                new string[] { 
                "wl.basic", 
                "wl.offline_access",
                "wl.skydrive_update" };

     public SkyDriveLiveLoginPage()
            {
                InitializeComponent();
                this.authClient = new LiveAuthClient("MyclientId", "https://oauth.live.com/desktop");
                this.authClient.InitializeCompleted += authClient_InitializeCompleted;
                this.authClient.InitializeAsync();
             }
     
    void authClient_InitializeCompleted(object sender, LoginCompletedEventArgs e)
            {
                this.authClient.LoginCompleted += authClient_LoginCompleted;
                this.authClient.LoginAsync(scopes);
            }
     private void authClient_LoginCompleted(object sender, LoginCompletedEventArgs e)
            {
            }

       for first time i am getting white screen and remaining times it is login well

    (

    authClient_LoginCompleted was not fired for first time

    )

    can any one please help me.

    thanks

    Tuesday, March 5, 2013 12:38 PM

All replies

  • Does the behavior change if you delay initialization of the authClient object to a later time, like PageLoaded event, or even later? (... like a user initiated event like Tap.)

    -Eric.

    Tuesday, March 5, 2013 6:33 PM
  •  

    Hi Eric Fleck,

      Same problem faced when i wrote under page loaded and my requirement is with out any tap event...so what i have to do? 

    Wednesday, March 6, 2013 11:54 AM
  • If you don't get any more suggestions you could try searching / asking on the Live Connect forum here: http://go.microsoft.com/fwlink/p/?LinkId=196622


    -Eric.

    Wednesday, March 6, 2013 6:59 PM