[libgdata] goa-authorizer: Set Authorization header as "Bearer ..."
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata] goa-authorizer: Set Authorization header as "Bearer ..."
- Date: Mon, 13 Apr 2015 22:35:12 +0000 (UTC)
commit 4496726447dd431004ccf872c45db6538df62fc2
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Jan 6 18:35:38 2015 +0100
goa-authorizer: Set Authorization header as "Bearer ..."
Starting with "OAuth..." seems a CnP/leftover from OAuth1 support. RFC
6750 only observes the "Bearer" keyword though. This also seems consistent
with GDataOAuth2Authorizer.
https://bugzilla.gnome.org/show_bug.cgi?id=742473
gdata/gdata-goa-authorizer.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdata/gdata-goa-authorizer.c b/gdata/gdata-goa-authorizer.c
index 4bfff0f..1e38268 100644
--- a/gdata/gdata-goa-authorizer.c
+++ b/gdata/gdata-goa-authorizer.c
@@ -314,7 +314,7 @@ gdata_goa_authorizer_add_oauth2_authorization (GDataAuthorizer *authorizer, Soup
return;
}
- authorization = g_string_new ("OAuth ");
+ authorization = g_string_new ("Bearer ");
g_string_append (authorization, priv->access_token);
/* Use replace here, not append, to make sure there's only one "Authorization" header. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]