[gnome-online-accounts/wip/oauth2: 7/10] live: Fix the access token end point URL
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts/wip/oauth2: 7/10] live: Fix the access token end point URL
- Date: Thu, 13 Sep 2012 13:09:17 +0000 (UTC)
commit 4a60f9836e8984abee245afcd0b01de48ef9d575
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Sep 13 14:44:26 2012 +0200
live: Fix the access token end point URL
The existing URL happened to work if GET was used to request the
access token, but according to the OAuth 2.0 specification it should
be using POST and that is how it is mentioned in Microsoft's
documentation.
See: http://msdn.microsoft.com/en-us/library/live/hh243647.aspx
http://tools.ietf.org/html/draft-ietf-oauth-v2-31#section-4.1.3
Moreover, Google's OAuth 2.0 implementation does not work with GET.
src/goabackend/goawindowsliveprovider.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/goabackend/goawindowsliveprovider.c b/src/goabackend/goawindowsliveprovider.c
index 12f9ffc..5e83874 100644
--- a/src/goabackend/goawindowsliveprovider.c
+++ b/src/goabackend/goawindowsliveprovider.c
@@ -92,7 +92,7 @@ get_authorization_uri (GoaOAuth2Provider *provider)
static const gchar *
get_token_uri (GoaOAuth2Provider *provider)
{
- return "https://oauth.live.com/token";
+ return "https://login.live.com/oauth20_token.srf";
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]