I assume you are building a plugin to access this API, using an OAuth2 credential? Otherwise, I'll probably need some more context on how you plan to wire things up...
If you are building such a plugin you should look at how the Google Cloud Storage plugin specifies its OAuth2 scope requirement: https://github.com/jenkinsci/google-storage-plugin/blob/master/src/main/java/com/google/jenkins/plugins/storage/GoogleCloudStorageUploader.java#L51 Putting an appropriately constructed @RequiresDomain on any describable (e.g. Publishers) will make the error you are seeing go away. As I said (more tersely) before, we scan for these annotations to dynamically populate the pertinent set of scopes for installed plugins. Specifically, you are going to want to define: public class ChromeWebStoreScopeRequirement extends GoogleOAuth2ScopeRequirement { which returns the scope you list, similar to StorageScopeRequirement <https://github.com/jenkinsci/google-storage-plugin/blob/master/src/main/java/com/google/jenkins/plugins/storage/StorageScopeRequirement.java>, then annotate something like this: @RequiresDomain(value = ChromeWebStoreScopeRequirement.class) public class ChromeWebStorePublisher extends Recorder { or maybe I am completely misunderstanding your intent... Hope that helps. -M On Fri, Sep 26, 2014 at 9:51 AM, Calvin <[email protected]> wrote: > Hi Matt, > > I have both the Google OAuth Plugin as well as the OAuth Credential Plugin > installed and enabled. The scope I'm needing specifically from the Google > OAuth Plugin is, scope=https://www.googleapis.com/auth/chromewebstore to > use this API, https://developer.chrome.com/webstore/using_webstore_api > > > <https://lh4.googleusercontent.com/-JiykxSQwKIg/VCWZhx-P5UI/AAAAAAAAAeA/tq0xSrvd-mQ/s1600/Screen%2BShot%2B2014-09-26%2Bat%2B9.48.06%2BAM.png> > > On Friday, September 26, 2014 9:35:35 AM UTC-7, Matthew Moore wrote: >> >> What plugins do you have installed that require OAuth? This plugin >> dynamically determines the set of OAuth scopes that might be required by >> installed plugins, to allow you to pick and choose which should be allowed >> for a given credential. >> >> Try installing google-storage-plugin, for example, and the storage scope >> should show up where you currently have that error message. >> >> >> LMK if you are expecting something to show up, which isn't. >> -M >> >> On Thu, Sep 25, 2014 at 11:04 PM, Calvin <[email protected]> wrote: >> >>> Just installed the Google OAuth Plugin into Jenkins in addition to >>> having the OAuth Credential Plugin, and upon configuring a new credential >>> domain neither plugins load the Google OAuth scopes. Anybody experience >>> this before? >>> >>> >>> <https://lh5.googleusercontent.com/-h5XOtXgqPrM/VCUB1xLwcdI/AAAAAAAAAdw/VgS-687r3c4/s1600/Screen%2BShot%2B2014-09-25%2Bat%2B5.33.34%2BPM.png> >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Jenkins Developers" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> >> -- >> Matthew Moore >> DI/Docker (aka Convoy) >> Developer Infrastructure @ Google >> > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- Matthew Moore DI/Docker (aka Convoy) Developer Infrastructure @ Google -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
