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
-
0
votes1
answer319
viewsSpring encoding problem
Good afternoon Personal, I’m working on a project with Spring MVC and Spring Security. But the same, is presenting problem in the character encoding, when I deploy on an external server, IE, run…
-
0
votes1
answer158
viewsDYNAMIC ROLES with Spring Security?
I have a system where everyone who accesses has a user standard ROLE, but if a user is assigned a secretary type task, the user’s ROLE will be SECRETARIO, users can assign tasks and therefore…
-
0
votes1
answer54
viewserror file facesProduces
is making a mistake Caused by: org.jboss.Weld.exceptions.Deploymentexception: WELD-001409: Ambiguous dependencies for type Httpservletrequest with Qualifiers @Default at Injection point…
-
0
votes1
answer63
viewsUser see only Items of the Operational unit that is in your registration
I have a vehicle management system. The company in which I work has several business units, so the user can only see the cars of the unit in which he works. This I managed to do, but whenever…
-
0
votes1
answer348
viewsForbbiden 403 - Redirect
To display an error message when I receive a 403 error, I would like the error message to be set via an HTML page created by me. Do you have a way to redirect? Using Angularjs or Spring itself? I’m…
-
0
votes1
answer62
viewsSpring Security permissionEvaluator not invoked
I’m trying to use my own permissionEvaluator, but the spring is not recognizing/invoking my settings. My current situation: package com.brunorozendo.security; import java.io.Serializable; import…
-
0
votes1
answer228
viewsSpring-boot web security, I can’t tell if you’re authenticating or not
I am trying to implement spring-boot web security in my webapp, but when I enter with login and password, it is simply reloading the page, and I cannot understand if it is authentication failure, or…
-
0
votes1
answer254
viewsInjection error in Bean feature
So guys, I’m developing in jsf and I came across this mistake there, does anyone have any idea what it might be?? javax.servlet.ServletException: javax.servlet.ServletException: Um erro ocorreu ao…
-
0
votes1
answer490
viewsSpring Security Permissions
I am developing a system for my college TCC. I am creating the user authentication part. I wonder if someone has a simple example of Spring Security configuration of users who have more than one…
-
0
votes1
answer233
viewsProblems with Spring Security
Hello, everyone. I am creating a project using Java EE and as an IDE I am using Eclipse. In this project, I am using Spring Security to authenticate the login procedure. Only this happens: I created…
-
0
votes1
answer56
viewsHow to migrate from spring security 3.0.5 to 4.2.3
I’d like to know how to get from Spring Secuirty 3.0.5 to 4.2.3 My xml: <?xml version="1.0" encoding="UTF-8"?> <web-app version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee"…
-
0
votes1
answer34
viewsSpring Secuirty dependency error
I am not able to adjust the dependencies of my Spring security, I tried to download the libraries 4.3.5 however I could not deploy. I’m not using pom so I need help, my library: Error while…
-
0
votes1
answer466
viewsCould not Verify the provided CSRF token because your Session was not found
I’m using Spring security 4.2.3 and spring 4.2.5 when I run the login screen and the user registration screen works correctly however when I ask to access the home screen. this error appears:…
-
0
votes1
answer47
viewsHow to customize the access denied url? (spring social facebook)
In class Providersignincontroller We have the method oauth2ErrorCallback. When the user cancels the authorization on facebook he is redirected to:…
-
0
votes0
answers106
viewsError accessing controller - spring securiy
I’m finding this mistake strange. Class you are reporting on the console: package br.com.netsoft.configuracao.auth; import io.jsonwebtoken.ExpiredJwtException; import java.io.IOException; import…
-
0
votes0
answers167
viewsProject error: java.sql.Sqlexception: Cannot create JDBC driver of class '' for connect URL 'null' - Javaparaweb
I’m studying Java by the book "Java for Web 2º Ed.", I was going quiet, but I stopped in the following error: abr 12, 2018 11:39:31 PM org.apache.tomcat.util.digester.SetPropertiesRule begin…
-
0
votes1
answer52
viewsSpring Security 4.2.1.RELEASE + SSO CAS (jasig 4.0.3)
I am using the CAS (Jasig) with three applications, when I log out of one of the applications I finish the session of the same and the CAS, but if I access another application that was already with…
-
0
votes1
answer174
viewsProblem with Spring Security configuration
Guys I’m having trouble in the following scenario: I have two projects, where one is the Resource project and the other project is the authentication server, both projects were built with spring…
-
0
votes0
answers226
viewsblock access with Spring
Beauty, in the configuration I made I’m not able to block access to the pages that are inside another folder inside my folder views. In case I’m trying to block access to everything inside the…
-
0
votes1
answer234
viewsRules processing with spring security
I am building an application with Spring Security and after performing all settings to have the custom login done with the UserDetailsService, I realized that when logging in, although the data is…
-
0
votes1
answer1469
viewsProblem while doing an update
Well I’m having difficulty to perform an update on my database it is presenting the following Exception. ERROR [org.springframework.security.web.Authentication.Usernamepasswordauthenticationfilter]…
java database hibernate authentication spring-securityasked 7 years, 10 months ago Wesley Santos 93 -
0
votes1
answer101
viewsHow do I redirect Exception to an error page?
How do I redirect Usernamenotfoundexception to a page? if ( user == null ) { log.info( "Email " + email + " não é um ususário cadastrado." ); throw new UsernameNotFoundException( "Email " + email +…
-
0
votes1
answer194
viewsSpring-Security does not work with custom login page
I’m starting in Spring Security (I’m actually new to Spring in general kkk) and I’ve been having a problem for a few days now. First I did test with the default login screen of Spring Security, put…
spring-securityasked 4 years, 2 months ago Rafael Silva 34 -
0
votes1
answer53
viewsSpring security - Some questions
I am implemented spring security, in the application. You are logging in correctly, logout too. In the pages below only enters if you have logged in with the scroll ROLE_ADMINISTRADOR. @Override…
-
0
votes1
answer270
viewsUpload JSF File with ajax
I’m trying to upload any file by the element h:inputfile jsf itself, and, I try to do this with ajax, but when I try to upload this error appears in the browser console... Uncaught TypeError: Cannot…
-
0
votes2
answers162
viewsI wanted to add more than one permission in the springSecurity roles
I would like to know the correct way to add more than one permission to the same folder in springSecurity because I wanted the admin to have the same access as the average user with an extra page.…
-
0
votes0
answers44
viewsI’m trying to upgrade from spring security 3.0.5 to 4.2.3
I’m trying to switch from spring security 3.0.5 to 4.2.3 but I’m having a serious dependency problem. In this project I was forced not to use mavem or something like that. And the problem (I just…
-
0
votes1
answer239
viewsProblem retrieving JWT in Angular
In the server-side I have a service using Spring Security and JWT for authentication and authorization, in the client-side I have a SPA in Angular. The problem occurs when I try to authenticate as I…
-
0
votes1
answer296
views403: Access is denied / Spring security
I’m working with Spring Secutiry. When I add this line below, I get 403 status when I try to access the url. @EnableWebSecurity @EnableGlobalMethodSecurity(prePostEnabled = true) public class…
-
0
votes1
answer88
viewsError while Logging in using Spring Security
Recently I started using Spring Security to make the security of my application, the problem is that when I click on the button to log in the correct one was to take me to the application’s home…
-
0
votes1
answer429
viewsSpring Security configured in Springboot project does not work properly on external Tomcat
My problem is this : I have an application made with Springboot, using the Maven, and making use of Spring Security. Throughout the development process, everything worked normally, I used the…
-
0
votes0
answers144
viewsWhat is the shortest way to implement 2FA with Angular and Spring
I am using the two technologies mentioned above and would like to know if you know any library, framework or functional example that facilitates the implementation of an authentication in two…
-
0
votes0
answers75
viewsHow to run two Websecurity classes in Spring
I have a project that performs authentications through JWT Token, and it uses Swagger, so I made a login and registration page to authenticate before entering Swagger, but I did not want to…
-
0
votes1
answer170
viewsHow to customize the authentication failure error to return a message in Body from the reply?
When an authentication failure occurs in Spring Security, it returns an error in the response header. I would like to customize the error and return a message in the reply Body. Below is the code…
-
0
votes1
answer3841
viewsAuthentication with Spring Boot, Security, Using Bank Html Page, User and Password
Hello, I am starting with Spring Boot and am caught in a problem with the spring security configuration. I’m trying to do the login part of the page, I made the settings with what I found material…
-
0
votes2
answers63
viewsHow to detect when the user tries to access a URL without having a ROLE for that URL in Spring Security
In my system the ROLES of the screen urls are dynamically loaded from the database through a ObjectPOstProcessor as you can see below: public void configProducao(HttpSecurity http) throws Exception…
-
0
votes1
answer146
viewsError while performing Basic Auth authentication in REST API on android
I’m having a hard time integrating with an API using basic auth authentication. I created a Java API using spring boot and spring security. When I use Postman the request works without any problem,…
-
0
votes1
answer124
viewsHow to make a user changes with the PUT method in Springboot
I’m doing a project and we’re in the API layer with Springboot. We have a problem with the verb PUT. We have the fields Id, Name, password, Tipousuario, password, so far so good, we are doing an If…
-
-1
votes1
answer564
viewsCheck user status when logging in
Hello, folks. I’m having a problem formulating my login screen and would like to ask your knowledge. I’m using Eclipse Mars . 1 to program, Primefaces for visual components and Spring Security for…
-
-1
votes1
answer214
viewsCORS problem in Spring-Rest API and Ionic3 front-end
I have developed a Back-end Rest application using spring-Rest and front-end in Ionic. I am facing a CORS configuration problem. In Resources methods I used the annotation @CrossOrigin to free all…
-
-1
votes2
answers223
viewsSpring MVC application does not redirect to page after login
I have a problem and I would like to count on your valuable help to solve it. After logging into the application the user should be forwarding to a catalog listing page. The login itself is ok,…
-
-1
votes1
answer44
viewsI can’t get an app token, help!
Follow my application security classes; Oauth2authorizationserverconfigjwt class public class OAuth2AuthorizationServerConfigJwt extends AuthorizationServerConfigurerAdapter{ @Autowired…
-
-1
votes1
answer37
viewsWhen adding Authentication Filter in Spring security, it is not possible to access the H2-console
Hello, I created my spring security configuration class, but when adding the authorization filter my access to H2-console was lost: @Configuration @EnableWebSecurity…
-
-1
votes1
answer33
viewsToken Authentication Micro-service Java
I am separating my authentication service into microservices, but when I separate the token into a module, my authentication service always returns 401 and does not log any This is my config class…
-
-3
votes1
answer337
viewsError creating bean named 'springSecurityFilterChain'
I am trying to use Spring Security, but the following error is occurring: GRAVE: Exception to sending context event started for instance System class…