Spring auto redirect to auth/login but l want redirect to successful.html how l fix it
I have a registration form in register.html that sends a POST request to the /auth/register
endpoint. After submitting the form, I want to redirect the user to successful.html
instead of /auth/login
. However, it is automatically redirecting to /auth/login instead of successful.html
.
Spring auto redirect to auth/login but l want redirect to successful.html how l fix it
I have a registration form in register.html that sends a POST request to the /auth/register
endpoint. After submitting the form, I want to redirect the user to successful.html
instead of /auth/login
. However, it is automatically redirecting to /auth/login instead of successful.html
.
Spring auto redirect to auth/login but l want redirect to successful.html how l fix it
I have a registration form in register.html that sends a POST request to the /auth/register
endpoint. After submitting the form, I want to redirect the user to successful.html
instead of /auth/login
. However, it is automatically redirecting to /auth/login instead of successful.html
.
How to use the same DTO with different roles in a RESTful API endpoint in Spring Boot?
I have a Spring Boot RESTful API with a PUT endpoint that can be accessed by different roles (ADMIN, MODERATOR, etc.). How to use the same DTO CreateOrUpdateRequest
for all roles but with different field validations & serialization rules depending on the user’s role :
Not getting the desired response from http request. Spring Security
Not getting back the list of users when requesting through Postman.
Spring Boot @PostMapping Endpoint Not Hit While @GetMapping Works after adding securityFilterChain
I’m learning Spring Boot with Spring Security, and I’m having trouble with a @PostMapping endpoint in my AuthController. The @GetMapping endpoint works fine, but the @PostMapping endpoint is never hit. I’ve verified the request using Postman, and everything seems correct. Here are the details:
Spring boot 3 and Spring security 6 authentication manager gets stuck on wrong password
I am facing an issue related to the authentication manager. My stack includes Spring Security 6.2 and Spring Boot 3.2.
How to initialize configs in springboot app on startup?
I trying to configure spring security 6 in my springboot application.
I want to load allowed roles for module in a map.
Map<module id, string[] allowed roles>
. Actually I want to use that map in security configs allowing specific user roles to modules.
I have module url like api/v1/module1
. How do I initialize that map before my application creates Security Config bean?
how to replace oAuth2RestTemplate.getAccessToken() with RestClient
Current Code:
org.springframework.http.HttpHeaders;
HttpHeaders headers = new HttpHeaders();
Authorize anonymous user by navigating to my endpoint in Spring Boot application
I have spring boot 3.3.0 application.
This code works, but when I go to any other endpoint, and the cookies are already set, then principall == null.