zoukankan      html  css  js  c++  java
  • flowable 6.6.0 绕过自带的登录限制(免登录)

    1. 找到项目maven目录

    2.在自己项目里面建相同包名,类名

    package org.flowable.ui.modeler.conf; 重写ModelerSecurityConfiguration

    package org.flowable.ui.modeler.conf;
    
    import org.flowable.ui.common.security.SecurityConstants;
    import org.springframework.context.annotation.Configuration;
    import org.springframework.core.annotation.Order;
    import org.springframework.security.config.annotation.web.builders.HttpSecurity;
    import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
    import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
    import org.springframework.security.web.authentication.SavedRequestAwareAuthenticationSuccessHandler;
    
    /**
     * 说明:重构ModelerSecurity
     * from:www.fhadmin.org
     */
    @Configuration(proxyBeanMethods = false)
    @EnableWebSecurity
    public class ModelerSecurityConfiguration {
    
        @Configuration
        @Order(SecurityConstants.MODELER_API_SECURITY_ORDER)
        public static class ModelerApiWebSecurityConfigurationAdapter extends WebSecurityConfigurerAdapter {
        	
            @Override
            protected void configure(HttpSecurity http) throws Exception {
            	
            	SavedRequestAwareAuthenticationSuccessHandler successHandler = new SavedRequestAwareAuthenticationSuccessHandler();
        		successHandler.setTargetUrlParameter("redirectTo");
    
        		http.headers().frameOptions().disable();
            	
            	http.csrf().disable().authorizeRequests().antMatchers("/**/**").permitAll().anyRequest().authenticated().and().httpBasic();
            }
    
        }
    
    }
    

    工作流模块------------------------------- www.fhadmin.org

    1.模型管理 :web在线流程设计器、导入导出xml、复制流程、部署流程

    2.流程管理 :导入导出流程资源文件、查看流程图、根据流程实例反射出流程模型、激活挂起

    3.运行中流程:查看流程信息、当前任务节点、当前流程图、作废暂停流程、指派待办人、自由跳转

    4.历史的流程:查看流程信息、流程用时、流程状态、查看任务发起人信息

    5.待办任务 :查看本人个人任务以及本角色下的任务、办理、驳回、作废、指派一下代理人

    6.已办任务 :查看自己办理过的任务以及流程信息、流程图、流程状态(作废 驳回 正常完成)

    办理任务时候可以选择用户进行抄送,就是给被抄送人发送站内信通知当前审批意见以及备注信息

    注:当办理完当前任务时,下一任务待办人会即时通讯收到新任务消息提醒,当作废和完结任务时,

    任务发起人会收到站内信消息通知

  • 相关阅读:
    树分治
    实现自己的shell--MIT xv6 shell
    逆元打表
    Linux fork()函数
    三分:求解凸函数极值
    anti-nim 游戏
    nginx配置文件详解
    nginx之别名、location使用
    shell脚本编程基础知识点
    linux任务计划
  • 原文地址:https://www.cnblogs.com/sjingser1/p/14831130.html
Copyright © 2011-2022 走看看