Example #1
0
        public void CreateRequestForAuthCode()
        {
            var authLink = new OAuth2AuthorizeLink()
            {
                AuthorizationServer = new Uri("https://login.live.com/oauth20_authorize.srf"),
                ClientId = "...",
                ResponseType = "code",
                RedirectUri = new Uri("https://login.live.com/oauth20_desktop.srf"),
                Scope = new[] { "wl.signin", "wl.basic", "wl.skydrive_update" }
            };

            var req = authLink.CreateRequest();

            // Copy this URI into the browser, sign in, and then copy the auth code from URL in the browser
        }
Example #2
0
        public void CreateOAuthAuthRequest()
        {

            var authLink = new OAuth2AuthorizeLink()
            {
                AuthorizationServer = new Uri("https://login.live.com/oauth20_authorize.srf"),
                ClientId = "...",
                ResponseType = "code",
                RedirectUri = new Uri("https://login.live.com/oauth20_desktop.srf"),
                Scope = new[] { "wl.signin", "wl.basic", "wl.skydrive" },
                State = ""
            };

            var request = authLink.CreateRequest();

        }