Relative Content

Tag Archive for spring-bootspring-security

Why When Disabling POST Requests Authentication it also disables the GET Request authentication

I am creating a springboot gateway integrated with spring security, eureka and oauth2 Client
The gateway is acting as an oauth2 client for the GET Requests hence all the GET Requests needs to be authenicated
But all the posts requests need not be authenticated as they have bearer token attach with them they can pass through the gateway and can be authenticated at the microservice itself
Problem is When I am permiting all the POST requests it also disables the GET request authentication