Questions tagged as 'spring-security'

1
answer

JSF 2, CDI 1.1, SpringSecurity 4: Custom login form does not redirect to page

I'm doing an application with JSF 2, SpringSecutiry 4 and CDI 1.1. I did the entire implementation of SpringSecurity with JSF and apparently everything worked normally, but when doing the custom login form, it redirects to file links in the H...
asked by 23.07.2015 / 15:15
0
answers

localhost has redirected you too many times

Good afternoon, I'm trying to direct a system user to an error page if something goes wrong with the session or if the user has denied access to a particular page etc ... I'm using Spring Security for this. in my applicationContext.xml cla...
asked by 08.11.2018 / 22:44
1
answer

Struts2 with Spring Security plugin Oauth2

I would like to know if it is possible to use the Spring Security Oauth2 plugin with Struts2 or if this plugin has any restrictions that only allow SpringMVC to work?     
asked by 19.02.2014 / 13:49
1
answer

Change Active Spring Profiles at run time

I usually use this code snippet to set the profile of the application <servlet> <servlet-name>dispatcher</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-p...
asked by 25.03.2014 / 18:12
0
answers

JWT + Spring Security without authentication

Good afternoon, guys. I have an application where I get a JWT token, login is treated in a separate application and in that token I get the roles. I need to use Spring Security to validate the same and handle permission to access the endpoints a...
asked by 24.07.2018 / 18:25
1
answer

JWT token with spring, for user authentication

When trying to validate this method: Jws<Claims> parseClaimsJws = setSigningKey.parseClaimsJws(token); , it shows this exception on the screen JWT signature does not match locally computed signature. JWT validity cannot be asserte...
asked by 29.03.2018 / 00:34
1
answer

Problems with improper access to urls in the application with Spring Security

I have a page that uses thymeleaf to update a user's profile and on this page there are two buttons that allow you to update the profile and the other button allows you to remove profile from the application. Once the user is authenticated he...
asked by 02.10.2017 / 16:28
0
answers

Inject EJB in spring bean

I'm working on a Java EE + Primefaces + JPA project with EJB. In the authentication part I decided to use Spring Security, but I'm having trouble getting the EJB inside the Spring controller. I found some tutorials, but I did not succeed. If som...
asked by 11.07.2017 / 19:25
1
answer

Difficulty in implementing password encryption with Spring Boot

By title you can realize that it is a Spring Boot project, and being a Spring Boot project many things are already configured by FrameWorks, but I do not know about the implementation of password encryption, in Spring MVC you have to configure s...
asked by 04.07.2017 / 14:56
1
answer

Repository - Records Filter according to user's permission

Searching on how to filter the records with the repository, I found the annotations: @PreAuthorize @PreFilter @PostFilter You have 2 Roles in the system: ROLE_ADMIN and ROLE_USER where ROLE_ADMIN can access all records, ROLE_USER can...
asked by 06.04.2017 / 17:06