[gnome-online-accounts/wip/oauth2: 7/10] live: Update the authorization and token endpoints, and redirect_uri



commit 5550c27565cf2d31f27558fe0c7e8ab2f984c11c
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 |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/goabackend/goawindowsliveprovider.c b/src/goabackend/goawindowsliveprovider.c
index 12f9ffc..babc6b1 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 *



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