Questions tagged as 'spring-security'

1
answer

How to perform the migration from spring security 3.0.5 to 4.2.3

I would like to know how to move 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" xmlns:xsi="http://www.w3.org/2001/XMLSchema-i...
asked by 02.03.2018 / 13:23
1
answer

Spring security - Some doubts

Spring security is implemented in the application. You are logging in correctly, logout as well. In the pages below you only enter if you have logged in with the role ROLE_ADMINISTRATOR . @Override protected void configure(HttpSecurity ht...
asked by 10.01.2018 / 21:17
1
answer

Spring Security Permissions

I am developing a system for my college CBT. I am creating the authentication part of users. I wonder if anyone has a simple example of setting up Spring Security for users who have more than one permission, that is, a user who can access more t...
asked by 10.01.2018 / 12:05
1
answer

Injection error in the Bean feature

So, I'm developing in jsf and I came across this error there, does anyone have any idea what it might be? javax.servlet.ServletException: javax.servlet.ServletException: Um erro ocorreu ao realizar a injeção de recurso no bean gerenciado...
asked by 08.01.2018 / 21:05
1
answer

Manage or customize the user session in Spring-managed JavaSE application

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 configure TimeOut in a JavaSE application ??! Here's the 'appl...
asked by 10.11.2017 / 03:40
1
answer

Spring Security permissionEvaluator not invoked

I'm trying to use my own permissionEvaluator , but spring is not recognizing / invoking my settings. My current situation: package com.brunorozendo.security; import java.io.Serializable; import org.springframework.security...
asked by 09.09.2017 / 04:07
1
answer

How 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 + " não é um ususário cadastrado." ); }...
asked by 31.07.2017 / 19:32
1
answer

Forbbiden 403 - Redirect

Displaying an error message when I receive a 403 error, I would like the error message to be defined through an HTML page I created. Do you have any way to redirect? Using AngularJS or Spring itself? I'm using AngularJS with Spring, how do I...
asked by 31.07.2017 / 21:34
1
answer

Dynamic ROLES with Spring Security?

I have a system where everyone who access has a ROLE default user, but if a user is assigned a task of the type secretary, the ROLE of that user will be SECRETARY, users can assign tasks and by this, whoever receives the task will have their ROL...
asked by 30.05.2017 / 21:06
1
answer

Spring Security 4.2.1.RELEASE + SSO CAS (jasig 4.0.3)

I'm using CAS (Jasig) with three applications, when I log out of one of the applications I end the session of the same and the CAS, but if I access another application that was already a session open via URL, the session stay alive How do I kill...
asked by 08.05.2017 / 22:08