spring-security Questions
5
Solved
I am currently following the Spring Documentation and some tutorials on Web Security. But now I have a problem, that I can't call the method antMatchers. This is the error I'm getting when building...
Mcintire asked 10/12, 2022 at 14:17
4
I'd like to make use of spring-security with ROLE_ADMIN and ROLE_USER roles.
I therefore try to create a typesafe enum class, but the @Secured annotation requires a constant String, which I cannot...
Ealing asked 13/5, 2014 at 11:33
5
Solved
I setup my Spring Security application according to the reference document and after hours of troubleshooting I continue to get a null @AuthenticationPrincipal passed into my controller.
The authen...
Catamnesis asked 11/4, 2022 at 13:17
6
Solved
This is my class for test.
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = AppConfig.class, loader = AnnotationConfigContextLoader.class)
public class UserServiceImplIT {
...
Evelyn asked 9/4, 2016 at 16:0
3
Link for Authorization server: https://github.com/spring-projects/spring-authorization-server
This project pretty much has everything in terms of OAuth and Identity provider.
My question is, How to...
Vadnais asked 18/3, 2022 at 14:16
8
I see this in my Spring MVC app's web.xml:
<filter>
<filter-name>springSecurityFilterChain</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProx...
Tobi asked 17/7, 2011 at 16:34
4
Is there a substitute for spring security in Node.js. I know of express and passport, but passport provides authentication only. It does not feature "forgot password", "reset password" or crud oper...
Stallion asked 12/3, 2015 at 18:57
6
Solved
I have a Spring Boot + Spring Security application that has severalantMatchers paths; some fullyAuthenticated(), some permitAll().
How to I write a test that verifies SecurityConfiguration has my e...
Benitobenjamen asked 27/4, 2017 at 16:50
9
Solved
I am having an issue with Spring Security. I am trying to configure it for a simple login but I am getting an error. Here is the code for the configuration:
package com.drg.AppConfig;
import org....
Explicit asked 9/8, 2017 at 14:0
11
I am trying to update the WebSecurityConfigurerAdapter as it has been deprecated. The class is configured as follows:
@Configuration
@EnableWebSecurity
@EnableGlobalMethodSecurity(prePostEnabled = ...
Octonary asked 25/5, 2022 at 16:14
13
I have configured a custom Filter that grants a spring authority for every URL other than /login :
public class TokenFilter implements Filter {
@Override
public void doFilter(ServletRequest req,...
Jillene asked 31/7, 2015 at 12:40
19
Solved
I'm using spring-boot-starter-security dependency, to make use of several classes that come with spring-security. But as I want to integrate it in an existing vaadin application, I only want to mak...
Taper asked 13/5, 2014 at 16:9
10
I've upgraded from Spring Boot 2.5 to 3.1, which comes with Spring Security 6.1.1. Calls to the login authentication REST service work just fine, but all requests to other REST controllers that req...
Rodriquez asked 13/7, 2023 at 19:16
3
I am trying to connect to cluster Redis with a valid URL and port I got this error:
Caused by: io.lettuce.core.RedisCommandExecutionException: ERR This instance has cluster support disabled
at io....
Outgrowth asked 18/11, 2020 at 15:5
2
Solved
As I was reading up about virtual threads and their pitfalls I found this mention :
Don't Cache Expensive Reusable Objects in Thread-Local Variables
Virtual threads support thread-local variable...
Burette asked 15/3 at 11:17
4
Solved
I'm developing a REST API based on Spring Boot (spring-boot-starter-web) where I use Spring Security (spring-security-core e spring-security-config) to protect the different endpoints.
The authent...
Kittie asked 25/6, 2018 at 15:9
29
When I use security.basic.enabled=false to disable security on a Spring Boot project that has the following dependencies:
<dependency>
<groupId>org.springframework.boot</groupId&g...
Purvey asked 27/5, 2014 at 16:3
2
Solved
Similar to this question but it got no answers: Spring Security: Handle InvalidBearerTokenException in @ExceptionHandler
I have similar code and I'm trying to catch org.springframework.security.oau...
Wil asked 18/2, 2022 at 5:42
3
Solved
I have followed the spring boot security tutorial but the end result has an issue consisting in that after successful login the browser is redirect to /undefined.
I have even cloned the code refer...
Cryptic asked 15/8, 2016 at 19:54
6
I need to use JWT in mi API, and the IDE tells me that the .signWith() method is deprecated. So far I use the @Deprecated annotation, but I think this is not so good practice.
This is my example co...
Pocosin asked 2/9, 2022 at 0:40
7
Solved
After a new user submits a 'New account' form, I want to manually log that user in so they don't have to login on the subsequent page.
The normal form login page going through the spring security ...
Gelatin asked 12/1, 2011 at 2:44
20
Solved
We added Spring Security to our existing project.
From this moment on we get a 401 No 'Access-Control-Allow-Origin' header is present on the requested resource error from the our server.
That's bec...
Chucho asked 4/11, 2016 at 8:46
4
Solved
I have a requirement to use two different authorization servers (two Okta instances) to validate authentication tokens coming from two different web applications inside a single Spring Boot applica...
Unskilled asked 3/2, 2020 at 0:39
7
Solved
Which jar contains the following Spring class:
org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
Mulish asked 16/12, 2013 at 22:16
10
Solved
I upgraded my project to Spring Boot 3 and Spring Security 6, but since the upgrade the CSRF protection is no longer working.
I'm using the following configuration:
@Bean
public SecurityFilterChain...
Niggard asked 15/11, 2022 at 14:16
© 2022 - 2024 — McMap. All rights reserved.