Examples of logout()


Examples of org.sonatype.security.SecuritySystem.logout()

    StorageItem item = repo.retrieveItem(request);

    // not sure if we really need to log the user out, we are not using a remember me,
    // but what can it hurt?
    securitySystem.logout(subject);

    return item;
  }

}
View Full Code Here

Examples of org.wikipediacleaner.api.API.logout()

  /**
   * Action called when Logout button is pressed.
   */
  public void actionLogout() {
    API api = APIFactory.getAPI();
    api.logout(getWikipedia());
    logged = false;
    userLogged = false;
    updateComponentState();
  }

View Full Code Here

Examples of org.wikipediacleaner.api.request.ApiLogoutRequest.logout()

    if (!wiki.getConnection().isClean()) {
      wiki.getConnection().clean();
      ApiLogoutResult result = new ApiXmlLogoutResult(wiki, httpClient);
      ApiLogoutRequest request = new ApiLogoutRequest(wiki, result);
      try {
        request.logout();
      } catch (APIException e) {
        // Nothing to do
      }
    }
  }
View Full Code Here

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

            String cookie = (String) session.getAttribute(ServerConstants.ADMIN_SERVICE_AUTH_TOKEN);
            SAML2SSOAuthenticationClient authClient = new SAML2SSOAuthenticationClient(configContext,
                                                                                       backendServerURL,
                                                                                       cookie,
                                                                                       session);
            authClient.logout(session);
        } catch (Exception ignored) {
            String msg = "Configuration context is null.";
            log.error(msg);
            throw new Exception(msg);
        }
View Full Code Here

Examples of org.xmlBlaster.protocol.corba.authenticateIdl.AuthServer.logout()

         ask("logout()");

         //----------- Logout --------------------------------------
         log.info("Logout ...");
         try {
            authServer.logout(xmlBlaster);
            authServer._release();
            xmlBlaster._release();
         } catch(org.xmlBlaster.protocol.corba.serverIdl.XmlBlasterException e) {
            log.warning("XmlBlasterException: " + e.getMessage());
         }
View Full Code Here

Examples of org.xwiki.test.ui.framework.elements.ViewPage.logout()

            grasp.forceAuthenticatedView();

            // Go to a page, log out and expire session by removing cookies, log in again and verify that the user is
            // redirected to the initial page.
            ViewPage page = getUtil().gotoPage("SomeSpace", "SomePage");
            page.logout();
            // Since view is disallowed for unauthenticated users, at this point we see a log in page.
            LoginPage loginPage = new LoginPage();
            // Remove all cookie to simulate a session expiry
            getDriver().manage().deleteAllCookies();
            loginPage.loginAsAdmin();
View Full Code Here

Examples of org.xwiki.test.ui.po.ViewPage.logout()

            grasp.forceAuthenticatedView();

            // Go to a page, log out and expire session by removing cookies, log in again and verify that the user is
            // redirected to the initial page.
            ViewPage page = getUtil().gotoPage("SomeSpace", "SomePage");
            page.logout();
            // Since view is disallowed for unauthenticated users, at this point we see a log in page.
            LoginPage loginPage = new LoginPage();
            // Remove all cookie to simulate a session expiry
            getDriver().manage().deleteAllCookies();
            loginPage.loginAsAdmin();
View Full Code Here

Examples of org.xwiki.test.ui.xe.elements.AllDocsPage.logout()

        page.gotoPage();

        // Test 1: Verify that the Action column is displayed only for administrators.
        LiveTableElement livetable = page.clickIndexTab();
        Assert.assertTrue("No Actions column found", livetable.hasColumn("Actions"));
        page.logout();
        livetable = page.clickIndexTab();
        Assert.assertFalse("Actions column shouldn't be visible for guests", livetable.hasColumn("Actions"));
        page.login().loginAsAdmin();

        // Test 2: Verify filtering works by filtering on the document name
View Full Code Here

Examples of org.xwiki.xmlrpc.XWikiXmlRpcClient.logout()

    public void testLoginLogout() throws Exception
    {
        XWikiXmlRpcClient rpc = new XWikiXmlRpcClient(TestConstants.ENDPOINT);
        rpc.login(TestConstants.USERNAME, TestConstants.PASSWORD);
        rpc.logout();
    }

    public void testLoginWithInvalidUser() throws MalformedURLException
    {
        XWikiXmlRpcClient rpc = new XWikiXmlRpcClient(TestConstants.ENDPOINT);
View Full Code Here

Examples of org.zanata.page.administration.RoleAssignmentsPage.logout()

        assertThat(roleAssignmentsPage.getRulesByPattern())
                .contains(".+ransla.+")
                .as("The rule was created");

        roleAssignmentsPage.logout();
        {
            // TODO: Bug? Remove me
            new LoginWorkFlow()
                    .signIn("translator", "translator")
                    .logout();
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.