Examples of OmAuthenticationStrategy


Examples of org.apache.openmeetings.web.app.OmAuthenticationStrategy

  protected void onSubmit(AjaxRequestTarget target) {
    ldapConfigFileName = domain.getConfigFileName() == null ? "" : domain.getConfigFileName();
    if (domain.getAddDomainToUserName()) {
      login = login + "@" + domain.getDomain();
    }
    OmAuthenticationStrategy strategy = getAuthenticationStrategy();
    WebSession ws = WebSession.get();
    if (ws.signIn(login, password, ldapConfigFileName)) {
       setResponsePage(Application.get().getHomePage());
      if (rememberMe) {
        strategy.save(login, password, ldapConfigFileName);
      } else {
        strategy.remove();
      }
    } else {
      strategy.remove();
      if (ws.getLoginError() != null) {
        ErrorValue eValue = getBean(ErrorDao.class).get(-1 * ws.getLoginError());
        if (eValue != null) {
          error(WebSession.getString(eValue.getFieldvalues_id()));
          target.add(feedback);
View Full Code Here

Examples of org.apache.openmeetings.web.app.OmAuthenticationStrategy

  protected void onSubmit(AjaxRequestTarget target) {
    ldapConfigFileName = domain.getConfigFileName() == null ? "" : domain.getConfigFileName();
    if (domain.getAddDomainToUserName()) {
      login = login + "@" + domain.getDomain();
    }
    OmAuthenticationStrategy strategy = getAuthenticationStrategy();
    WebSession ws = WebSession.get();
    if (ws.signIn(login, password, ldapConfigFileName)) {
       setResponsePage(Application.get().getHomePage());
      if (rememberMe) {
        strategy.save(login, password, ldapConfigFileName);
      } else {
        strategy.remove();
      }
    } else {
      strategy.remove();
      if (ws.getLoginError() != null) {
        ErrorValue eValue = getBean(ErrorDao.class).get(-1 * ws.getLoginError());
        if (eValue != null) {
          error(WebSession.getString(eValue.getFieldvalues_id()));
          target.add(feedback);
View Full Code Here

Examples of org.apache.openmeetings.web.app.OmAuthenticationStrategy

  @Override
  protected void onSubmit(AjaxRequestTarget target) {
    if (domain.getAddDomainToUserName()) {
      login = login + "@" + domain.getDomain();
    }
    OmAuthenticationStrategy strategy = getAuthenticationStrategy();
    WebSession ws = WebSession.get();
    Type type = domain.getLdapConfigId() > 0 ? Type.ldap : Type.user;
    if (ws.signIn(login, password, type, domain.getLdapConfigId())) {
       setResponsePage(Application.get().getHomePage());
      if (rememberMe) {
        strategy.save(login, password, type, domain.getLdapConfigId());
      } else {
        strategy.remove();
      }
    } else {
      strategy.remove();
      if (ws.getLoginError() != null) {
        ErrorValue eValue = getBean(ErrorDao.class).get(-1 * ws.getLoginError());
        if (eValue != null) {
          error(WebSession.getString(eValue.getFieldvalues_id()));
          target.add(feedback);
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.