Package com.puppetlabs.geppetto.forge.client

Examples of com.puppetlabs.geppetto.forge.client.OAuthModule


      if(!saveDirtyEditors())
        // User clicked on cancel when being asked to save dirty editors.
        return false;

      final Injector injector = UIPlugin.getInstance().createInjector(
        new OAuthModule(FORGE_CLIENT_ID, FORGE_CLIENT_SECRET, loginField.getText(), passwordField.getText()));
      try {
        @SuppressWarnings("unchecked")
        List<IResource> whiteCheckedResources = getWhiteCheckedResources();
        File tmpDir = new File(System.getProperty("java.io.tmpdir"));
        File destinationDir = File.createTempFile("forge-", ".tarballs", tmpDir);
View Full Code Here


import com.google.inject.Module;

public class SetupTestMojo extends AbstractForgeTestMojo {
  private static Module createCredentialsModule(Properties props, String login, String password) throws IOException {
    return new OAuthModule(
      props.getProperty("forge.oauth.clientID"), props.getProperty("forge.oauth.clientSecret"), login, password);
  }
View Full Code Here

      diagnostic.addChild(new Diagnostic(ERROR, FORGE, "password must be specified"));

    if(diagnostic.getSeverity() >= ERROR)
      return;

    modules.add(new OAuthModule(clientID, clientSecret, login, password));
  }
View Full Code Here

        @Override
        protected String getBaseURL() {
          return FORGE_STAGING_SERVICE_BASE_URL;
        }
      });
      install(new OAuthModule(FORGE_CLIENT_ID, FORGE_CLIENT_SECRET, TEST_USER, TEST_PASSWORD));
      bind(HttpClient.class).toInstance(new DefaultHttpClient());
    }
View Full Code Here

TOP

Related Classes of com.puppetlabs.geppetto.forge.client.OAuthModule

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.