[gnome-online-accounts] live: Update the authorization and token endpoints, and redirect_uri



commit 8f621339de14a16ed83b69dbf8ed998695891163
Author: Debarshi Ray <debarshir gnome org>
Date:   Thu Sep 13 14:44:26 2012 +0200

    live: Update the authorization and token endpoints, and redirect_uri
    
    The older token endpoint does not work with POST.
    
    Current versions of Microsoft's documentation has updated the
    authorization endpoint and the special redirect_uri for desktop or
    mobile applications too. Even though the older values work, it does
    not hurt to keep up with the times.
    
    See: http://msdn.microsoft.com/en-us/library/live/hh243647.aspx

 src/goabackend/goawindowsliveprovider.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/goabackend/goawindowsliveprovider.c b/src/goabackend/goawindowsliveprovider.c
index 12f9ffc..fd7bf30 100644
--- a/src/goabackend/goawindowsliveprovider.c
+++ b/src/goabackend/goawindowsliveprovider.c
@@ -85,21 +85,21 @@ get_provider_name (GoaProvider *_provider,
 static const gchar *
 get_authorization_uri (GoaOAuth2Provider *provider)
 {
-  return "https://oauth.live.com/authorize";;
+  return "https://login.live.com/oauth20_authorize.srf";;
 }
 
 
 static const gchar *
 get_token_uri (GoaOAuth2Provider *provider)
 {
-  return "https://oauth.live.com/token";;
+  return "https://login.live.com/oauth20_token.srf";;
 }
 
 
 static const gchar *
 get_redirect_uri (GoaOAuth2Provider *provider)
 {
-  return "https://oauth.live.com/desktop";;
+  return "https://login.live.com/oauth20_desktop.srf";;
 }
 
 static const gchar *
@@ -132,7 +132,7 @@ get_client_secret (GoaOAuth2Provider *provider)
 static const gchar *
 get_authentication_cookie (GoaOAuth2Provider *provider)
 {
-  return "MSNPPAuth";
+  return "PPAuth";
 }
 
 /* ---------------------------------------------------------------------------------------------------- */
@@ -246,7 +246,7 @@ is_deny_node (GoaOAuth2Provider *provider, WebKitDOMNode *node)
 
   input_element = WEBKIT_DOM_HTML_INPUT_ELEMENT (node);
   name = webkit_dom_html_input_element_get_name (input_element);
-  if (g_strcmp0 (name, "submitNo") != 0)
+  if (g_strcmp0 (name, "ucdeny") != 0)
     goto out;
 
   ret = TRUE;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]