Examples of login()


Examples of org.wso2.carbon.authenticator.proxy.AuthenticationAdminClient.login()

                    request.setAttribute(CarbonConstants.REMEMBER_ME_COOKIE_VALUE, data.getValue());
                    request.setAttribute(CarbonConstants.REMEMBER_ME_COOKIE_AGE,
                            new Integer(data.getMaxAge()).toString());
                }
            } else {
                isLogged = proxy.login(userNameWithDomain, password, request.getRemoteAddr());
            }
            return isLogged;
        } catch (AxisFault axisFault) {
            throw axisFault;
        } catch (RemoteException e) {
View Full Code Here

Examples of org.wso2.carbon.authenticator.proxy.AuthenticationAdminStub.login()

        AuthenticationAdminStub stub = new AuthenticationAdminStub(ctx, serviceEPR);
        ServiceClient client = stub._getServiceClient();
        Options options = client.getOptions();
        options.setManageSession(true);
        try {
            boolean result = stub.login(username, password, serviceEPR);
            if (result) {
                cookie = (String) stub._getServiceClient().getServiceContext().
                                getProperty(HTTPConstants.COOKIE_STRING);
            }
            return result;
View Full Code Here

Examples of org.wso2.carbon.authenticator.stub.AuthenticationAdminStub.login()

    AuthenticationAdminStub stub = new AuthenticationAdminStub(ctx, serviceEPR);
    ServiceClient client = stub._getServiceClient();
    Options options = client.getOptions();
    options.setManageSession(true);
    try {
      boolean result = stub.login(username, password, serviceEPR);
      if (result){
        cookie = (String) stub._getServiceClient().getServiceContext().
        getProperty(HTTPConstants.COOKIE_STRING);
      }
      return result;
View Full Code Here

Examples of org.wso2.carbon.core.services.authentication.AuthenticationAdminServiceStub.login()

            // first authenticate the client. Change the host and port in the URL, appropriately.
            AuthenticationAdminServiceStub authenticationStub =
                    new AuthenticationAdminServiceStub("https://localhost:9443/services/AuthenticationAdminService");
            authenticationStub._getServiceClient().getOptions().setManageSession(true);
            boolean resp = authenticationStub.login("admin","admin",NetworkUtils.getLocalHostname());

            // get the cooke to use in the next service invoations. This lets registry service to authenticate
            // the second request
            ServiceContext serviceContext = authenticationStub._getServiceClient().getLastOperationContext().getServiceContext();
            String sessionCookie = (String) serviceContext.getProperty(HTTPConstants.COOKIE_STRING);
View Full Code Here

Examples of org.wso2.carbon.core.services.authentication.AuthenticationAdminStub.login()

        boolean authenticate = false;

        serviceURL = backendServerURL + "AuthenticationAdmin";
        authStub = new AuthenticationAdminStub(configCtx, serviceURL);
        authStub._getServiceClient().getOptions().setManageSession(true);
        authenticate = authStub.login(userName, password, remoteIp);
        authCookie = (String) authStub._getServiceClient().getServiceContext().getProperty(
                HTTPConstants.COOKIE_STRING);
        return authenticate;
    }
View Full Code Here

Examples of org.wso2.carbon.event.client.stub.generated.authentication.AuthenticationAdminServiceStub.login()

            try {
                String servicesString = "https://" + hostName + ":" + servicePort + webContext + "services/";
                AuthenticationAdminServiceStub stub =
                        new AuthenticationAdminServiceStub(clientConfigurationContext, servicesString + "AuthenticationAdmin");
                stub._getServiceClient().getOptions().setManageSession(true);
                boolean isAuthenticated = stub.login(userName, password, NetworkUtils.getLocalHostname());

                if (isAuthenticated) {
                    ServiceContext serviceContext = stub._getServiceClient().getLastOperationContext().getServiceContext();
                    String sessionCookie = (String) serviceContext.getProperty(HTTPConstants.COOKIE_STRING);
                    QpidAdminServiceStub qpidAdminServiceStub = new QpidAdminServiceStub(clientConfigurationContext, servicesString + "QpidAdminService");
View Full Code Here

Examples of org.wso2.carbon.identity.authenticator.saml2.sso.ui.client.SAML2SSOAuthenticationClient.login()

        // authorize the user with the back-end
        SAML2SSOAuthenticationClient authenticationClient = null;
        try {
            authenticationClient = new SAML2SSOAuthenticationClient(
                    configContext, backEndServerURL, cookie, session);
            isAuthenticated = authenticationClient.login(responseStr, username);

            // add an entry to CarbonSSOSessionManager : IdpSessionIndex --> localSessionId
            if (isAuthenticated) {
                CarbonSSOSessionManager ssoSessionManager =
                        SAML2SSOAuthFEDataHolder.getInstance().getCarbonSSOSessionManager();
View Full Code Here

Examples of org.wso2.carbon.issue.tracker.mgt.IssueTrackerAdmin.login()

                    log.debug("Reporting to project : \n\n" + account.getAutoReportingSettings().getProjectName());
                }

                String token = null;
                try {
                  token=  admin.login(account.getCredentials());
                } catch (IssueTrackerException e) {
                     log.error("Error connceting to JIRA",e);
                }

                GenericIssue genericIssue = new GenericIssue();
View Full Code Here

Examples of org.wso2.carbon.issue.tracker.ui.IssueTrackerClient.login()

        GenericCredentials credentials = accountInfo.getCredentials();
        String token = null;

        //login
        try {
            token = issueTrackerClient.login(credentials);
        } catch (IssueTrackerExceptionException e) {
            String msg = "Error loging to JIRA from account " + account.get(0);
            log.error(msg);

            CarbonUIMessage.sendCarbonUIMessage(msg, CarbonUIMessage.ERROR, request,
View Full Code Here

Examples of org.wso2.carbon.jira.reporting.JiraIssueReporter.login()

        JiraIssueReporter reporter = JiraIssueReporter.getInstance();

        String token = null;
        try {
            token = reporter.login(credentials);
        } catch (IssueTrackerException e) {
            ExceptionHandler.handleException("Error in login.", e, log);
        }
        return token;
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.