Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
0 answers
35 views

I'm doing a fullstack project, and for some obvious reasons I choose to use OAuth2 with Keycloak, of all tutorials that I've watched no one mention about self-login and self-registration so my primary ...
Ian Leme's user avatar
-2 votes
0 answers
20 views

i work on springboot , i created three table category ,quize and question . category have n number of quize and quize have n number of question . now i make crud oprations on category and using jwt ...
Tanuraj Chaudhari's user avatar
Best practices
0 votes
3 replies
87 views

What's up guys? I'm building a scheduling app and thinking about using Spring Security + OAuth2 so I don't have to handle user credentials (email, password, etc.). Keycloak will handle that, so I won'...
Ian Leme's user avatar
0 votes
0 answers
47 views

I am developing a very simple Spring MVC app; for the time being just a controller and JSP. I am having trouble configuring security (so far only with basic auth). @Configuration @EnableWebSecurity ...
SJuan76's user avatar
  • 24.9k
0 votes
1 answer
25 views

Is there a way to have Jasypt encrypted variables in my application.yml file for spring.cloud.aws.credentials.access-key, spring.cloud.aws.credentials.secret-key set to an ENC() value and decrypt them ...
himan01's user avatar
  • 45
Advice
0 votes
0 replies
26 views

I have a Spring controller with a method that should only be callable by users having a certain authority. I've secured the method with `@PreAuthorized`: @PreAuthorized("hasAuthority('The_Group')&...
fml2's user avatar
  • 362
Best practices
2 votes
1 replies
42 views

I'm building a Spring Boot REST API with Spring Security. Some of my endpoints only accept POST requests, e.g.: @PostMapping("/api/v1/products") @PreAuthorize("hasRole('ADMIN')") ...
Abdelouahab 's user avatar
0 votes
2 answers
88 views

I’m setting up a project using Spring Boot 4.0.2 (Spring Security 6) and I’m getting a 401 Unauthorized in a MockMvc integration test, even though I’m using @WithMockUser(roles = "ADMIN"). I ...
Francislainy Campos's user avatar
-4 votes
0 answers
58 views

I have introduced a SpringBoot library which handles security configuration. 'authUser/login' API is written in the same lib. CSRF is disabled for the api - 'authUser/login'. The same has been ...
Abhilash Mangalan's user avatar
-1 votes
1 answer
69 views

I'm building a microservices system using Java Spring Boot, DDD, and Hexagonal Architecture. Current Stack: BFF Service: Orchestrates frontend requests. (Confidential Client) Stores token. Customer ...
Nur Sultan ASLAN's user avatar
1 vote
0 answers
103 views

I recently migrated my application from Spring Boot 3.5.0 to Spring Boot 4.0.2. In version 3.5.0, Redis-based HTTP session management worked out of the box without any additional configuration. After ...
Saravana Kumar's user avatar
0 votes
0 answers
58 views

I have this bookUpdate() API and run it completely fine. But recently, I've added role to my User and @PreAuthorize and before my controller method and @EnableMethodSecurity to my SecurityConfig : @...
Lê Đức Quang's user avatar
1 vote
0 answers
66 views

I am using Spring Boot 4 with OpemSaml 5. i have set up for global log out with Okta. Both the log in and the log out works great. However, after a global logout if I try to log in again after an ...
Viraj Shetty's user avatar
Best practices
2 votes
2 replies
38 views

In spring boot we hash password like this. BCryptPasswordEncoder passwordEncoder = new BCryptPasswordEncoder(16); String hashed = passwordEncoder.encode(plainTextPassword); Is it a good idea to store ...
Ammar's user avatar
  • 504
1 vote
1 answer
89 views

I am seeing a weird problem. My SAML application which was working great in 3.5.9 has problems reading SAML properties from the application.yml file. I changed to the most basic SAML configuration and ...
Viraj Shetty's user avatar

15 30 50 per page
1
2 3 4 5
1943