Package it.eng.spagobi.services.security.service

Examples of it.eng.spagobi.services.security.service.ISecurityServiceSupplier.checkAuthentication()


 
  private void authenticate(String userId, String password) throws WSSecurityException {
    logger.debug("IN: userId = " + userId);
    try {
      ISecurityServiceSupplier supplier = SecurityServiceSupplierFactory.createISecurityServiceSupplier();
      SpagoBIUserProfile profile = supplier.checkAuthentication(userId, password);
      if (profile == null) {
        logger.error("Authentication failed for user " + userId);
        throw new WSSecurityException(WSSecurityException.FAILED_AUTHENTICATION);
      }
    } catch (WSSecurityException e) {
View Full Code Here


    // instead, if SSO is active, the authentication mechanism is provided by the SSO itself, so SpagoBI does not make
    // any authentication, just creates the user profile object and puts it into Spago permanent container
    if (!activeSoo) {
      String pwd=(String)request.getAttribute("password");      
      try {
        Object ris=supplier.checkAuthentication(userId, pwd);
        if (ris==null){
          logger.error("pwd uncorrect");
          EMFUserError emfu = new EMFUserError(EMFErrorSeverity.ERROR, 501);
          errorHandler.addError(emfu);          
          return;
View Full Code Here

        ISecurityServiceSupplier supplier = SecurityServiceSupplierFactory.createISecurityServiceSupplier();
               
        Assert.assertNotNull(usr, "User identifier not spicified");       
        Assert.assertNotNull(usr, "Password not spicified");
       
        if( supplier.checkAuthentication(usr, pwd) == null) {
          logger.warn("An attempt to authenticate with wrong credential has made [" + usr + "/" + pwd +"]");
          throw new SpagoBIServiceException(SERVICE_NAME, "An attempt to authenticate with wrong credential has made [" + usr + "/" + pwd +"]");
        }
       
      } else {
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.