Questions tagged as 'spring-security'

2
answers

How to create real Permissions instead of simple Roles in Spring Security?

I'm developing an Access Control module for my web application using Spring Security (3.1.4 - the latest release ) and ran into a limitation on the Authorization , because the framework only provides for the use of Roles (roles), which mean...
asked by 12.12.2013 / 13:20
2
answers

JAAS or Spring Security in page control

I'm doing a project in Eclipse with JSF 2.2, JPA 2.1, Hibernate 5, Primefaces 5.3, CDI (weld 1.1). I want to implement the security part of the application and I am in doubt between JAAS and Spring Security. The template below corresponds...
asked by 01.12.2015 / 14:30
1
answer

Change spring-security role by bean

I'm using spring-security to authenticate my user, until now, I want to be able to change the user role for managed bean , does anyone have an idea? Type I have several modules and each user has a role for each module then when h...
asked by 04.05.2015 / 21:36
2
answers

Spring Security with Java EE

Hello, I'm developing a Maven Enterprise Application EAR project and I'm currently implementing the authorization part using Spring Security with Annotation instead of xml. Project Structure: FileAppConfig.javapackagebr.com.seguranca.confi...
asked by 11.05.2015 / 16:21
1
answer

Spring Security, display message when you log out

I am controlling the session of my application with Spring Security, I have two rules to terminate the session, max-session <session-management> <concurrency-control max-sessions="1" error-if-maximum-exceeded="true" ex...
asked by 13.08.2015 / 21:41
1
answer

How to expose a method as a bean to use the spring dependency injection

I need to expose a method as a bean in Spring% with% to use it in the injection of an attribute, which has more than one implementation. What I did was the following: I added the method that will create my object using the ApplicationCon...
asked by 28.05.2018 / 17:12
2
answers

How to send an error message to view

I'm a little lost here, I'd like to put a parameter in the view to tell the user that their password is wrong, expired, and so on. the problem that spring-security identifies. WebSecurityConfigurerAdapter @Configuration @EnableWebSecurity...
asked by 17.03.2016 / 18:51
1
answer

Problems implementing Spring Security

I'm implementing Spring Security in a project, however, I've come across some issues. I'm going through the context code, the part of web.xml to Spring Security and how I put it on a page for you to see. What happens is that Spring...
asked by 08.05.2015 / 22:49
1
answer

What programming should be done to use Spring Security with Jboss with annotations?

As per requirements of a project that is in the research phase, I need a large distributed system to work properly with Spring, right now I'm having a hard time integrating Spring Security 3.2 with JBoss EAP 6.3. It's a bit difficult to defin...
asked by 08.06.2015 / 21:12
1
answer

Problem with Spring Security - page not found

When the user accesses a page that he does not have authorization, he is directed to the page of AcessoNegado.xhtml . However it has the following image: Thispageislocatedhere:\GestaoADM\src\main\webapp\AcessoNegado.xhtml And the set...
asked by 30.06.2015 / 17:04