Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
-1 votes
1 answer
34 views

Spring RestTemplate - How to remove `client_secret` from the logs?

My backend application currently leaks client_secret inside my log file. I would like to keep the log level of DEBUG except for the RestTemplate where I don't want this line to be executed. The log ...
Aleksa Majkic's user avatar
-2 votes
0 answers
12 views

Can't download files content-disposition inline with a POST request from my app after activating CORS on a spring boot 3 application on Chrome/Edge

I'm currently working on a java spring boot (3.2) application with Spring MVC and secured with Spring security. I wanted to add a CORS configuration on my app but this add a bug on downloading files ...
milcaepsilon's user avatar
0 votes
0 answers
23 views

Spring Gateway with authenticator not forwarding requests

I am quite new to using Spring Gateway and I am setting it up with Spring Gateway MVC as I did my authentication in MVC. I have added the dependencies to my pom, I have an API running in port 8090. I ...
learningProgrammer's user avatar
0 votes
0 answers
57 views

Spring Redis serialization issue with Spring Security's DefaultSavedRequest class

I am using spring-session-data-redis, spring-boot-starter-data-redis for session persistence in Redis. The Spring Boot version for the application is 3.2.6. I am also using Spring Boot security with ...
Abhishek Patnaik's user avatar
-2 votes
0 answers
139 views

Spring Security Warning: How to Fix AuthenticationProvider vs. UserDetailsService Configuration?

I’m encountering a warning when starting my Spring Boot application with Spring Security configuration. The warning message is: WARN [ restartedMain] r$InitializeUserDetailsManagerConfigurer : Global ...
Hyusein Lesho's user avatar
-3 votes
1 answer
79 views

Unable to access Rest endpoints even after successful login in spring security through react form [closed]

I am trying to implement login authentication in spring boot ,I have used Spring security and used a react form in the frontend to authenticate , I am using axios to call my /login which works well, ...
Pretham's user avatar
-1 votes
0 answers
22 views

Spring boot serialize different fields according to users role [duplicate]

I've a spring boot project that is about 90% of development complete and I just faced a new requirement, for one specific endpoint the response must only include certain entity fields if authenticated ...
Rafael Lima's user avatar
  • 3,364
0 votes
0 answers
23 views

Spring Security error Like Stopping service [Tomcat] and Error creating bean with name 'springSecurity'

I have created new project and when I am created the new spring security class I am getting the error and also added the spring security dependency please go through the code and I think this info is ...
Jinendra's user avatar
-2 votes
0 answers
45 views

Cannot send any request from one service to another through API Gateway with JWT Token in Spring Boot Microservices [closed]

I've tried to implement and example of Spring Boot Microservices. After register and login process is completed, I can get a token with its relevant role. When I send a request to product service ...
jacksondel's user avatar
0 votes
0 answers
42 views

Spring Security Web NoSuchMethodError exception [closed]

I use Spring Security Web in my project. when I update it from version 6.2.1 to 6.2.2 it causes the error on runtime: java.lang.NoSuchMethodError: 'boolean org.springframework.security.authentication....
ArMaN's user avatar
  • 2,385
-1 votes
0 answers
28 views

Java / Spring Boot - Application states that my login details are invalid but they are correct [closed]

I currently creating the log in page for my application. I have created the registration form which is working and saving to the database. However once I go to the log in page and enter the correct ...
Neet's user avatar
  • 9
-1 votes
1 answer
60 views

Multiple SecurityFilterChains in Spring Security

In my security configuration I want to add different kinds of security filter chains. One is for calls to /api with OAuth2 and the other is for calls to /net with a special header value with the name ...
Claudio Zesiger's user avatar
0 votes
0 answers
35 views

Spring Security 6 configuration with custom form login

I am building a Spring Boot application with an endpoint "/admin" which requires authentication in order to be accessed; all other endpoints should be accessible without authentication. ...
Alexandre Pauvarel's user avatar
2 votes
2 answers
70 views

Able to hit the secured endpoint from browser but not from postman/insomnia getting 401 unathorized

pom dependency: spring boot starter security spring boot starter oauth2 client application.properties: spring.security.oauth2.client.registration.qwerty=qwerty spring.security.oauth2.client....
Seriously's user avatar
  • 227
-2 votes
0 answers
23 views

spring cloud azure AadJwtBearerTokenAuthenticationConverter replacement

I'm migrating from <dependency> <groupId>com.azure.spring</groupId> <artifactId>spring-cloud-azure-starter-active-directory</artifactId> <version>4.2.0&...
Andry's user avatar
  • 661

15 30 50 per page
1
2 3 4 5
787