Examples of AuthType


Examples of com.google.gerrit.reviewdb.client.AuthType

    final int requestHeaderSize =
        cfg.getInt("httpd", "requestheadersize", 16386);
    final URI[] listenUrls = listenURLs(cfg);
    final boolean reuseAddress = cfg.getBoolean("httpd", "reuseaddress", true);
    final int acceptors = cfg.getInt("httpd", "acceptorThreads", 2);
    final AuthType authType = ConfigUtil.getEnum(cfg, "auth", null, "type", AuthType.OPENID);

    reverseProxy = isReverseProxied(listenUrls);
    final Connector[] connectors = new Connector[listenUrls.length];
    for (int idx = 0; idx < listenUrls.length; idx++) {
      final URI u = listenUrls[idx];
View Full Code Here

Examples of com.google.gerrit.reviewdb.client.AuthType

  }

  public void run() {
    ui.header("User Authentication");

    final AuthType auth_type =
        auth.select("Authentication method", "type", AuthType.OPENID);

    switch (auth_type) {
      case HTTP:
      case HTTP_LDAP: {
View Full Code Here

Examples of com.ibm.sbt.automation.core.test.BaseTest.AuthType

    }

    @Test
    public void testCommunity() {
        AuthType authType = getEnvironment().isSmartCloud() ? AuthType.AUTO_DETECT : AuthType.NONE;
        setAuthType(authType);
        addSnippetParam("CommunityService.communityUuid", community.getCommunityUuid());
       
        JavaScriptPreviewPage previewPage = executeSnippet(SNIPPET_ID);
       
View Full Code Here

Examples of com.ibm.sbt.automation.core.test.BaseTest.AuthType

    if (baseTest.isResultsReady()) {
      // results for this test are ready so return them here
      return form;
    }

    AuthType authType = detectAuthType(baseTest, form);
    if (authType != AuthType.NONE) {
      Trace.log("handleAutoDetect: " + form.getText() + " - " + authType);
    }

    return authenticate(baseTest, authType, originalHandle);
View Full Code Here

Examples of org.apache.ace.agent.connection.UrlCredentials.AuthType

        }
        if (prefix == null) {
            throw new IllegalArgumentException("Prefix cannot be null!");
        }

        AuthType type;
        URL baseURL;
        Object[] creds;

        String baseUrlValue = getStringProperty(props, prefix.concat(KEY_AUTH_BASE_URL));
        if (baseUrlValue == null) {
View Full Code Here

Examples of org.apache.ace.agent.connection.UrlCredentials.AuthType

     *            the URL credentials to supply, cannot be <code>null</code>.
     * @throws IOException
     *             in case of I/O problems.
     */
    private void supplyCredentials(URLConnection conn, UrlCredentials urlCreds) throws IOException {
        final AuthType type = urlCreds.getType();
        final Object[] creds = urlCreds.getCredentials();

        if (AuthType.BASIC.equals(type)) {
            applyBasicAuthentication(conn, creds);
        }
View Full Code Here

Examples of org.apache.ace.connectionfactory.impl.UrlCredentials.AuthType

        }
        if (prefix == null) {
            throw new IllegalArgumentException("Prefix cannot be null!");
        }

        AuthType type;
        URL baseURL;
        Object[] creds;
       
        String baseUrlValue = getStringProperty(props, prefix.concat(KEY_AUTH_BASE_URL));
        if (baseUrlValue == null) {
View Full Code Here

Examples of org.apache.ace.connectionfactory.impl.UrlCredentials.AuthType

     * @param conn the connection to supply the credentials to, cannot be <code>null</code>;
     * @param urlCreds the URL credentials to supply, cannot be <code>null</code>.
     * @throws IOException in case of I/O problems.
     */
    private void supplyCredentials(URLConnection conn, UrlCredentials urlCreds) throws IOException {
        final AuthType type = urlCreds.getType();
        final Object[] creds = urlCreds.getCredentials();

        if (AuthType.BASIC.equals(type)) {
            applyBasicAuthentication(conn, creds);
        }
View Full Code Here

Examples of org.apache.shindig.gadgets.AuthType

      // Detect the authz parsing
      if (httpApiRequest.authz != null) {
        req.setAuthType(AuthType.parse(httpApiRequest.authz));
      }

      final AuthType authType = req.getAuthType();
      if (authType != AuthType.NONE) {
        if (authType == AuthType.OAUTH2) {
          req.setSecurityToken(requestItem.getToken());

          Map<String, String> authSettings = getAuthSettings(requestItem);
View Full Code Here

Examples of org.apache.shindig.gadgets.AuthType

    // allows proper rewriting of <script src="x"/> where x is returned with
    // a content type like text/html which unfortunately happens all too often
    req.setRewriteMimeType(getParameter(request, Param.REWRITE_MIME_TYPE.getKey(), null));

    // Figure out whether authentication is required
    AuthType auth = AuthType.parse(getParameter(request, AUTHZ_PARAM, null));
    req.setAuthType(auth);
    if (auth != AuthType.NONE) {
      if (auth == AuthType.OAUTH2) {
        req.setSecurityToken(extractAndValidateToken(request));
        req.setOAuth2Arguments(new OAuth2Arguments(request));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.