GNOME Bugzilla – Bug 742473
Small freebase oauth2 access bugs
Last modified: 2015-04-13 22:35:23 UTC
I've noticed some buglets trying to setup the freebase API with a goa-based authorizer, I'm attaching a few patches to fix these.
Created attachment 293960 [details] [review] freebase: Fix authorization domain Set up as per https://developers.google.com/freebase/v1/how-tos/authorizing#AboutAuthorization.
Created attachment 293961 [details] [review] goa-authorizer: Add freebase domain This is necessary for authorizers to correctly authorize freebase queries.
Created attachment 293962 [details] [review] 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.
Review of attachment 293960 [details] [review]: ++
Review of attachment 293961 [details] [review]: ++
Review of attachment 293962 [details] [review]: ++ if it works. I’m surprised this didn’t get caught before.
Attachment 293960 [details] pushed as 5b34fea - freebase: Fix authorization domain Attachment 293961 [details] pushed as aab9947 - goa-authorizer: Add freebase domain Attachment 293962 [details] pushed as 4496726 - goa-authorizer: Set Authorization header as "Bearer ..."