Handle unauthorized error message for Basic Authentication in Spring Security

后端 未结 2 832
眼角桃花
眼角桃花 2020-12-04 18:25

I am trying to use Spring Security 3.0.5 in my web application. Basically, I want to have a web service which return data in json format via HTTP GET.

I

2条回答
  •  时光取名叫无心
    2020-12-04 19:08

    I am wondering if it is ever making it to your AccessDeniedHandler. Is the error because of Authentication or Authorization? Does the AccessDeniedHandeler get called for both scenarios? I am in the process of solving this myself right now.

提交回复
热议问题