Package org.beangle.security.monitor

Examples of org.beangle.security.monitor.Authentication


    // 避免login没有权限,出现死循环
    if (!freeResources.contains(resource) && !manager.isPublicResource(resource)) {
      OnlineActivity info = manager.getAuthenticationManager().getSessionController()
          .getOnlineActivity(session.getId());
      if (null == info) {
        Authentication auth = null;
        // remember me
//        if (manager.isEnableRememberMe()) {
//          auth = manager.getRememberMeService().autoLogin(httpRequest);
//        }
        if (null == auth) {
          auth = new SsoAuthentication(httpRequest);
          auth.setDetails(userDetailsSource.buildDetails(httpRequest));
        }
        try {
          manager.authenticate(auth);
        } catch (AuthenticationException e) {
          // 记录访问失败的URL
View Full Code Here


    while (iter.hasNext()) {
      AuthenticationProvider provider = iter.next();
      if (!provider.supports(toTest)) {
        continue;
      }
      Authentication result;
      try {
        result = provider.authenticate(auth);
      } catch (AuthenticationException ae) {
        lastException = ae;
        if (ae instanceof AuthenticationBreakException) {
View Full Code Here

    // 避免login没有权限,出现死循环
    if (!freeResources.contains(resource) && !manager.isPublicResource(resource)) {
      OnlineActivity info = manager.getAuthenticationManager().getSessionController()
          .getOnlineActivity(session.getId());
      if (null == info) {
        Authentication auth = null;
        // remember me
        // if (manager.isEnableRememberMe()) {
        // auth = manager.getRememberMeService().autoLogin(httpRequest);
        // }
        if (null == auth) {
          auth = new SsoAuthentication(httpRequest);
          auth.setDetails(userDetailsSource.buildDetails(httpRequest));
        }
        try {
          manager.authenticate(auth);
        } catch (AuthenticationException e) {
          // 记录访问失败的URL
View Full Code Here

TOP

Related Classes of org.beangle.security.monitor.Authentication

Copyright © 2018 www.massapicom. 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.