2LO Marketplace App vs 2LO domain key

17 views
Skip to first unread message

Jose Luis Rodenas

unread,
Feb 6, 2012, 12:01:56 AM2/6/12
to google-app...@googlegroups.com
I have a marketplace app running using 2LO without problems. Now I want to do some stress tests using my domain consumer key/secret without changing the code. I have the domain consumer key/secret/2LO enabled but when I try to use the domain key/secret the provisioning api queries fails with: 

com.google.gdata.util.AuthenticationException: Unknown authorization header. 

I am using the UserService to retrieve a UserEntry: "https://apps-apis.google.com/a/feeds/" + domain + "/user/2.0/" +  name + "?xoauth_requestor_id=" + email;

With the marketplace key/secret is working fine. I tried the SitesService and it is working with the domain key/secret 2LO.

I am missing something?


Claudio Cherubino

unread,
Feb 6, 2012, 12:43:48 AM2/6/12
to google-app...@googlegroups.com
Hi Jose Luis,

The Provisioning API is an userless API, so you shouldn't pass the xoauth_requestor_id parameter.
Also, you have to explicitly grant your own domain access to the readonly Provisioning API feed, as per the instructions at


Claudio




--
You received this message because you are subscribed to the Google Groups "Google Apps Domain Information and Management APIs" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-apps-mgmt-apis/-/tgPYyi9305EJ.
To post to this group, send email to google-app...@googlegroups.com.
To unsubscribe from this group, send email to google-apps-mgmt...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-apps-mgmt-apis?hl=en.

Jose Luis Rodenas

unread,
Feb 6, 2012, 4:42:44 AM2/6/12
to google-app...@googlegroups.com
Thank you for your quick answer, I don't know what happens with Google Apps documentation that everything is so difficult to find...

And the line: "...but do not click "Allow access to all APIs" setting since you will be limiting access to specific APIs" is priceless!!


Reply all
Reply to author
Forward
0 new messages