These are chat archives for spring-cloud/spring-cloud

31st
Dec 2018
muhmadtabrez
@muhmadtabrez
Dec 31 2018 05:52
@marcosbarbero you mean i should still try this request from angular but using curl??
Marcos Barbero
@marcosbarbero
Dec 31 2018 06:16
@muhmadtabrez i mean you try both requests using curl and see the difference, instead of postman and angular
muhmadtabrez
@muhmadtabrez
Dec 31 2018 06:30
@marcosbarbero yes you are right when i am trying to call the secured api with curl command i am getting 401
I am getting org.springframework.security.access.AccessDeniedException: Access is denied
at org.springframework.security.access.vote.AffirmativeBased.decide(AffirmativeBased.java:84) ~[spring-security-core-4.2.2.RELEASE.jar:4.2.2.RELEASE] exception
As said earlier i have configured two WebSecurityConfigurerAdapter filters one for enabling csrf and other for basic authentication
when i am trying to access the secured api with Authorization header i am getting 401

$ curl --request GET \

--url http://localhost:8088/core-employee/getUserInform \
--header 'Accept: application/json' \
--header 'Authorization: bearer 6a639b50d0fe444a8b7724aea38bf871' \
--header 'Content-Type: application/json'
this is my curl am i making any mistake while calling the api

matin-reza
@matin-reza
Dec 31 2018 07:23
Hi to all , How to disable unused filter in zuul? and how to detect which of them is unnecessary?
How to detect unused filter to disable in zuul for improving performance and response time?