Most voted "spring-security" questions
Spring Security was previously known as Acegi Security because it was a parallel project to the Spring Framework and was gradually integrated into it. When I say 'integrated' I mean that it (Acegi Security) continued to be developed based on Spring, that is, it works perfectly on the Spring container.
Learn more…145 questions
Sort by count of
-
2
votes0
answers114
viewsREST Service within a Web Application
I have a web application with Spring MVC and there is a need for a client to consume a service, so I created in the same project a resource mapped with Restcontroller, when testing the service using…
-
2
votes2
answers3730
viewsCORS: Response to preflight request doesn’t pass access control check: It does not have HTTP ok status
I can get the TOKEN of my application by using Postman as follows. This works perfectly, and return me the Token. However when I try to make the same request, using Axios, in my application with…
-
2
votes0
answers85
viewsDoubts about authentication for a Java application with Spring Security (stateless)
I will start a new project and came to doubt regarding the best way to work the authentication/authorization part. The project will be developed in Java with spring (boot), backend and frontend…
-
1
votes1
answer392
viewsHow to detect if wi-fi and/or bluetooth are connected
Good afternoon! I wonder if anyone knows any open source for an application to check if the wi-fi or Bluetooth are connected.
-
1
votes1
answer162
viewsERROR TO MANY REDIRECTS Spring Security Core and Grails
Good morning, I am developing a Grails application and decided to implement authorization and authentication the same is working perfectly however I decided to change the login form to my form and…
-
1
votes1
answer180
viewsIs it safe to trust the security of an application to Spring Security?
I am developing a fairly simple but widely distributed system that involves including use of Ejbs and other agents, which requires both Authentication and Authorization. The system will initially…
-
1
votes1
answer457
viewsError in applicationContext-security.xml
My first xml file applicationContext-security.xml: <?xml version="1.0" encoding="UTF-8"?> <b:beans xmlns="http://www.springframework.org/schema/security"…
-
1
votes0
answers34
viewsHow to Do REST Security with Spring Security
People I am trying to implement security on my REST server done with SPRING 4. I am working with annotations. The basics of spring security to protect pages I know. But how to protect the…
-
1
votes1
answer223
viewsSpring MVC Security - Web config.xml does not open page
I am trying to implement Spring Security in my project, but I am facing the following problem. When I add tags to web xml., the project does not even load the initial page, already starts with error…
-
1
votes1
answer59
viewsNotifier of any event that the user performs in the system
I am using the Spring Framework for java and would like to create can create a kind of warning, <scan>, which shows in the table that a new line has been added (this line comes from the…
java web-application jsp spring-mvc spring-securityasked 8 years, 10 months ago Vinicius Duarte 115 -
1
votes1
answer318
viewsIs there a framework to assist in the authentication process when using Google Appengine?
I don’t want to use the app session. Would Spring Security be the only option? In this case it would be a SPA app.
java framework spring-security google-app-engine single-page-applicationasked 8 years, 5 months ago gledson85 23 -
1
votes0
answers166
viewsSpring Security and Shiro -> How to authenticate a user in Security and pass a token to Shiro
I have two web apps: the first web application is using Spring MVC and Security and makes user authentication in the database. And works very well, thank you. The second web-app are using Shiro for…
-
1
votes1
answer225
viewsSpring Security Oauth + Firebase
Good afternoon. I’m implementing the security layer of my application. I decided that we will use Firebase to perform the authentication, and when it returns the access token to the client it will…
-
1
votes1
answer388
viewsDuplicate value in the bank when inserting new users with an already used Role (Spring-Security)
Hello I’m creating a simple web application with Springmvc and Spring Security. I did the User and Roles class as follows: @Entity public class Usuario implements UserDetails { private static final…
-
1
votes1
answer251
viewsLogin Module with Spring Security
Guys, I’m studying the Spring Framework and all the others frameworks that it makes available and would very much like to implement a module of login. I am currently using Spring without any use of…
-
1
votes0
answers126
viewsSpring Security + CDI + Hibernatefilter
good afternoon! I am in a system with Primefaces, Hibernate, CDI and am implementing security with Spring-Security and control transactions with Hibernatefilter, declared on web.xml. I did all the…
-
1
votes1
answer142
viewsProblem passing information on my login
am receiving this Exception at the time of logging in ERROR [org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter] (default task-10) An internal error occurred while…
-
1
votes0
answers58
viewsSpring security
I would like to know how to configure the spring security so it can have two authentication profiles. When configuring in my application the same when uploading the application generates the…
-
1
votes1
answer67
viewsHow to redirect request when @Preauthorize returns false
I’m learning about the Spring MVC and Spring Security. How do I redirect the page when the following line returns false within a @Controller ? @PostAuthorize(" hasRole('page')") If the line above…
-
1
votes1
answer27
viewsHow to set up a repository I created for Spring Security (Basic)
I’m on a project and we’ll use Basic Auth of Spring Security, I would like to know how to make the configuration so that it uses the users created with my Repository. Entity: @Entity public class…
-
1
votes3
answers462
viewsHow to limit a user to only access their own data?
I am developing a task list application for study, however, all users access all tasks. I wonder if anyone has ever implemented something like this with the Spring Security and how you did.…
-
1
votes0
answers35
viewsHow to use Oauth in the application.properties file?
I had an application.yml file using Oauth as follows: oauth: enabled: true all-in-one: true But now I need to use the application.properties file and the structure is different. I thought it was…
-
1
votes0
answers51
viewsIntegration between Springsecurity and Springdata to use Spel
Good afternoon I am creating a routine where I need to use Spel to access data from the logged-in user (Authetication) directly in Springdata @Query, I followed the Springdata tutorial to perform…
-
1
votes1
answer215
viewsProject error: JSF does not respond or display Message
I’m on a JSF study project from the book Java For Web. It was going well, but I put the following code in JSF which, according to updates, should not work because the library…
-
1
votes0
answers47
viewsTLS 1.2 in Spring Java
Does anyone know how to configure for the Java application to use TLS 1.2 ? This configuration is done in the Java application or on the server ? I’m wearing Spring 3.1 Thank you…
-
1
votes0
answers55
viewsJava Spring, error authenticating with active Diretory
Hi guys, in my company we implemented an active Diretory environment, and we were asked to develop an application that authenticates there, the environment is already created and the guy from the…
-
1
votes1
answer93
viewsSecurity rules not recognised by Thymeleaf
Hello. Despite defining the rules for spring security and calling in html in an apparently correct way, permissions are not recognized when running the browser. A user without permission…
-
1
votes1
answer52
viewsCustom Authentication with Spring Security
How do I make a custom login and password authentication using Spring Security? The goal is to verify the login and password in the database.
spring-securityasked 5 years, 7 months ago Isaque 306 -
1
votes0
answers13
viewsProblem logging in with Grails 3 on Kubernetes
I’m having problems authenticating my system. I’m using Grails 3 with Springsecurity and when I will scale to 2 or more replicas in my Kubernetes cluster authentication stops working. What I might…
-
1
votes1
answer1050
viewsLogin Spring Boot + Spring Secutrity + Angular
What structure is used for the Spring Boot, Spring Security and Angular Js combination to manage login and the Spring application will be in Rest. Will the login controller be in the Rest format as…
-
1
votes1
answer3371
viewsConfiguring CORS in Spring Security
I need to configure Spring Security to accept requests from external applications. I do not know how to do, I have a project in Spring Boot and Spring Security where only accept request from the…
-
1
votes0
answers211
viewsSpring security set Token on Headers
I configured Cross to accept the request in Angularjs, but the answer comes without the token. How to add token to Response? Spring security: @Override protected void configure(HttpSecurity http)…
spring spring-boot spring-security cross-domain microservicesasked 7 years, 3 months ago Aderbal 119 -
1
votes1
answer430
viewsError Creating bean with name 'springSecurityFilterChain' defined in class path Resource
org.springframework.Beans.factory.Beancreationexception: Error Creating bean with name 'springSecurityFilterChain' defined in class path Resource…
-
1
votes0
answers152
viewsWhat should @Preauthorize do?
I’m creating a simple crud with spring-mcv and spring-security. Everything is running perfectly spring-security.xml <b:bean id="handlerWeb1"…
-
1
votes1
answer153
viewsManage or customize user session in Spring-managed Javase app
I would like to know how to manage or customize the user session in the Javase application (GUI / Desktop / SWING / thinClient) managed by Springsecurity?! For example, how could I set up Timeout in…
-
1
votes0
answers122
viewsHow to use spring security isEnabled
I was wondering if I am using the isEnabled spring security method correctly. Because on my system, every user has a list of profiles. If admin removes all their profiles and the user tries to log…
-
1
votes1
answer265
viewsUser authentication with H2 database in Kotlin Spring Boot Application
Problem: Authenticate user using H2 database in Spring Security Context: The application is made using Spring, the user class is this @Entity data class Usuario( @NotEmpty var nome:String = "",…
-
1
votes1
answer403
viewsError while accessing route released with Spring boot
Good afternoon I am having a problem in releasing routes for my application made with Spring boot. The problem is that the "/home" main route asks for the JWT token to access it, but it is…
-
1
votes0
answers31
viewsLoad JWT Signature key from a dynamic base
I implemented an Authorization Server using AuthorizationServerConfigurerAdapter and users and customers are configured from the implementation of services UserDetailsService and…
-
1
votes0
answers188
viewsCustom authentication page Spring security
I added the spring security dependency to my POM.XML, after which I created a new custom page for user authentication and configured webSecurityConfig to search my custom page, but when running the…
-
1
votes0
answers249
viewsExample Configuration in Swagger Secutiry with Spring Boot
I am making a documented API in Swagger, when I enter the url of my api, it appears to make an authentication, because it has a Websecurityconfig class that does this for me, but I wanted to make an…
-
1
votes1
answer522
viewsHow do I search for logged-in user information other than by the controller?
I’m using spring security to log in to my site. It’s working, I can register new users, log in and drop off. I have a navbar that, when the user is not logged in, appears the option "Log in or…
-
1
votes0
answers12
viewsSpring and Dynamic Datasource
I have two database Structures, example: 1- MAIN_DATABASE: USER PASSWORD 2: CUSTOMER DATABASE: CUSTOMER_A CUSTOMER_B CUSTOMER_C I want to access the main database and after validating the data,…
-
1
votes1
answer23
viewsSpring Security Override Problem
I’m trying to implement Spring Security...only that I’m having trouble with its configuration, @Override doesn’t work at all, and because of that it doesn’t take the user created in memory, let…
-
0
votes1
answer129
viewsSpring Security Oauth2 Plugin with Json Tokens
Can anyone tell me if the Spring Security Oauth2 plugin supports access tokens in JSON format instead of XML format? And if yes what needs to be done to make that change?
-
0
votes0
answers45
viewsHow to integrate my User into Spring Security xml
I’m starting to learn Spring Security and I’m having some questions. In the past I used to authenticate users using phaseListener. I have the User MB where your scope is @SessionScoped. How can I…
-
0
votes0
answers255
viewsSpring Security with Jboss leads to error`Circular view path...`, what is wrong?
In an attempt to get Spring Security working with Jboss, based on the GS-Security-WEB example, I am receiving the following message by logging into the available testing Urls: Log Out 12:40:16,051…
-
0
votes1
answer96
viewsGrails Spring Security check if User belongs to Group (Rolegroup)
I have the following domain classes: User hasOne Rolegroup hasMany Roll Examples: Rolegroup: Admin, Professional, Client, ... Roll: ROLE_ACTION_1, ROLE_ACTION_2, ... How do I check if the User…
-
0
votes0
answers380
viewsIdentify user by login
Hey there, guys. I am developing a system that deals with user registration and I have the following problem: in the system there will be 3 types of users: Administrator, Normal and Temporary.…
-
0
votes0
answers270
viewsAngularjs + (Spring MVC or Specification)
Galley, I’m starting the development of a system (java), and I’m having doubts about the technology. The system is totally restricted (login/password) and will be made available on the internet, so…