`
wutao8818
  • 浏览: 606462 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

自定义过滤器时,不能再使用<sec:authorize url="">问题

阅读更多
需要添加applicationContext-security.xml文件中添加以下配置

<beans:bean id="customWebInvocationPrivilegeEvaluator" class="org.springframework.security.web.access.DefaultWebInvocationPrivilegeEvaluator">
        <beans:constructor-arg name="securityInterceptor" ref="myFilterSecurityInterceptor" />
    </beans:bean>


其中myFilterSecurityInterceptor为自定义扩展的AbstractSecurityInterceptor

另外一个关键的地方时以上的配置文件必须在

<http auto-config="true" access-denied-page="/403.html">

配置以前,如果位置不对,也不会产生效果。


参考:http://hi.baidu.com/gestapo8/item/4e78d3d78dae3095270ae745


分享到:
评论
1 楼 koreajapan03 2016-03-30  
楼主啊,好人啊,帮我解决了问题,谢谢

相关推荐

    Sec semester grade1

    try to test for many certification in your field just try it. Arabic_1Sec_General Test1_T1.exe

    thymeleaf-extras-springsecurity-3.0-master.zip

    &lt;div sec:authorize-url="POST /admin"&gt; This will only be displayed if authenticated user can call the "/admin" URL using the POST HTTP method. &lt;/div&gt; Finally, there is an attribute for checking ...

    Ecshop 第三方登录插件!,微博,淘宝,QQ,支付宝等

    &lt;tr&gt;&lt;td&gt;使用合作网站账号登录&lt;/td&gt;&lt;td&gt;&lt;a href="#" onclick='toQzoneLogin()'&gt;&lt;img src="/login/qqlogin/qq_login.png"&gt;&lt;/a&gt; &lt;a href="#" onclick='toSinaWeiboLogin()'&gt;&lt;img src="/login/sinaweibo/sinaweibo_...

    sunbufu-authorize:注解式权限认证

    sunbufu-授权=====================================注解式权限管理框架1如何使用1.1向pom.xml添加依赖项 &lt;dependency&gt; &lt;groupId&gt;com.github.sunbufu&lt;/groupId&gt; &lt;artifactId&gt;authorize-starter&lt;/artifactId&gt; ...

    rack-authorize:用于授权api访问的Rack中间件

    机架::授权 ... gem 'rack-authorize' , :git =&gt; 'git@github.com:yanguango/rack-authorize.git' 该宝石仍在开发中,因此尚未发布到rubygems.org 然后执行: $ bundle 或将其自己安装为: $ g

    laravel-authorize:一种检查授权的中间件

    Route :: group ([ 'prefix' =&gt; 'admin' , 'middleware' =&gt; 'can:viewAdmin' ], function () { //all the controllers of your admin section . . . }); 此外,中间件可以使用: Route :: get ( '/post/{post...

    goodreads:Python中Goodreads API的简单客户端

    &gt;&gt;&gt; GoodreadsClient.authorize_access() 访问API 一旦以上运行,这很简单。 ..代码块:: pycon &gt;&gt;&gt; from goodreads import GoodreadsClient &gt;&gt;&gt; client = GoodreadsClient() 有关登录用户的信息 ..代码块:: ...

    cms-s3:Vue.js + S3 => CMS

    Vue.js + S3 =&gt; TreeView CMS 您可以为S3存储桶构建CMS。 网站界面 职能 S3存储桶中列表的树视图 拖放 创建,删除,重命名文件夹和文件 上传文件 下载文件 预览文件(图像,音频,视频) Authrorize(Cognito) ...

    authorize-role:一个简单的基于角色的快速授权中间件

    var authorize = require('authorize-role'); request对象必须具有user属性,该role必须具有role才能起作用。 要授权某个角色,例如'admin' ,您可以执行以下操作: var app = express(); app.use(authorize('...

    Microsoft.AspNet.WebApi.HelpPage.Ex:Microsoft ASP.NET Web API 帮助页面的扩展

    正确支持&lt;c&gt; , &lt;code&gt; , &lt;para&gt; , &lt;example&gt; , &lt;exception&gt; , &lt;paramref&gt; , &lt;see&gt; , &lt;seealso&gt; , &lt;typeparamref&gt; 用法 安装 NuGet 包,并在询问时覆盖所有文件。 打开 Web api 项目的 Properties,然后选择Build...

    oauth2-demo:回复:从零开始的Spring Security Oauth2

    新增授权码(authorization_code)模式使用说明 尝试直接访问qq信息 http://localhost: 8080 /qq/info/ 250577914 / 提示需要认证: &lt; oauth&gt; &lt; error&gt; Full authentication is required to access this ...

    Spring Security 中文教程.pdf

    7.4. 使用其他过滤器 —— 基于框架 8. 核心安全过滤器 8.1. FilterSecurityInterceptor 8.2. ExceptionTranslationFilter 8.2.1. AuthenticationEntryPoint 8.2.2. AccessDeniedHandler 8.3. ...

    SpringSecurity 3.0.1.RELEASE.CHM

    7.4. 使用其他过滤器 —— 基于框架 8. 核心安全过滤器 8.1. FilterSecurityInterceptor 8.2. ExceptionTranslationFilter 8.2.1. AuthenticationEntryPoint 8.2.2. AccessDeniedHandler 8.3. ...

    OAuth2第三方登录

    &lt;add key="OAuth2" value="true"/&gt; &lt;!--新浪微博社区登陆接口--&gt; &lt;add key="SinaWeibo.AppKey" value="683085337"/&gt; &lt;add key="SinaWeibo.AppSercet" value="04d9d88defc65ec0b685de0304872126"/&gt; &lt;add key=...

    Spring Security-3.0.1中文官方文档(翻译版)

    7.4. 使用其他过滤器—— 基于框架 8. 核心安全过滤器 8.1. FilterSecurityInterceptor 8.2. ExceptionTranslationFilter 8.2.1. AuthenticationEntryPoint 8.2.2. AccessDeniedHandler 8.3. ...

    authorize:authorize.net api 的客户端库

    授权authorize.net api 的客户端库

    MCloud - OAuth2 认证中心

    &lt;url&gt;jdbc:mysql://localhost:3306/数据库名称&lt;/url&gt; &lt;/configuration&gt; &lt;/plugin&gt; ``` 修改相关配置之后,请在项目根目录下执行maven命令: ``` mvn flyway:clean flyway:migrate ``` 修改项目的数据库配置: *...

    wialon_api:简单的Wialon API客户端http

    WialonApi wialon_api是基于基于Web的GPS跟踪软件平台的ruby客户端。 安装 将此行添加到应用程序的Gemfile中: gem 'wialon_api' 然后执行: ... # =&gt; {"plan"=&gt;"Gurtam External", # "enabled

    nerf

    nerf-&gt;&gt;GitHub: Authorize GitHub--&gt;&gt;nerf: Authorized nerf-&gt;&gt;nerf-server: Get generated config.yml for Nebula with appropriate IP and Groups nerf-server-&gt;&gt;nerf-server: Generate config.yml nerf-...

    GESI:Google表格ESI插件

    GESI Google表格插件,用于与EVE ESI API进行交互。 GESI提供EVE Online SSO流程来授权您的角色,以及ESI的包装,以便在Google表格中访问您的EVE Online... 单击它,然后单击GESI =&gt; Authorize Character 。 单击模态

Global site tag (gtag.js) - Google Analytics