Posts

Showing posts from March 18, 2019

Custom Oauth2 Authorization Server - AccessDeniedException: Access is denied

Image
-1 I try to write my own custom oauth2 based Authorization Server for my web application. I planned it something like this: I want to authenticate through login form available in my angular app. Than I want to access with my angular app protected resources using JWT Token generated by my authorization service. Currently I am unable to login to my application, because server responds with exception: org.springframework.security.access.AccessDeniedException: Access is denied at org.springframework.security.access.vote.AffirmativeBased.decide(AffirmativeBased.java:84) ~[spring-security-core-5.0.3.RELEASE.jar:5.0.3.RELEASE] at org.springframework.security.access.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:233) ~[spring-security-core-5.0.3.RELEASE.jar:5.0.3.RELEASE] at org.s