Questions tagged as 'spring-security'

2
answers

How to hide menu items using spring security?

I'm using spring security to control access to my web application. I already managed to implement the control that each type of user will have in relation to the urls, now I would hide the items for the ordinary user that will be restricted to o...
asked by 04.06.2018 / 20:48
3
answers

How to recover user session

I wanted to just retrieve a user's session. I have a class called SystemUser , which identifies which user is logging on. In this class, I get the session and play for an object. @ManagedBean(name = "usuarioLogado") @SessionScoped public clas...
asked by 26.10.2015 / 02:08
1
answer

Login by hyperlink with username and password in email with JSF and Spring Secutity

I have a system in JSF (with primefaces) with spring security. When the user registers, he receives an email with a username and password. Ok - It works. However, I would like to send in the body of the email a hyperlink where the user cou...
asked by 24.03.2017 / 15:00
1
answer

How do I check if my spring application is in the production environment?

When in production, when I fall into an exception, send an email to the support but only in production, in development I do not want it to perform this task.     
asked by 19.08.2015 / 20:55
2
answers

Hide screen options if user is not allowed

I'm having a difficulty in a web application I'm creating here, I'm using spring security to do access control, session and login, with backend java with restful and frontend with primefaces . I would like to know if y...
asked by 28.04.2016 / 15:56
1
answer

Spring Security blocks POST requests despite settings

I'm developing a REST API based on Spring Boot ( spring-boot-starter-web ) where I use Spring Security ( spring-security-core and spring-security-config ) to configure the protection of different endpoints . > Authentication...
asked by 25.06.2018 / 17:00
1
answer

Validation of number of sessions with spring boot and spring security

I need to validate the number of sessions that may exist, so that the user can not log in to two places at the same time with the same credentials. Reading the Spring Security documentation and posts, I got the implementation below, but it does...
asked by 16.01.2018 / 21:12
0
answers

Spring Security Example Does not work in Jboss, what should be done to match the example?

Continuing my studies on using Spring Security and Servelet 3.0 I'm trying to follow the examples suggested in the tutorial Hello MVC - Running the insecure MVC Application , however such examples are to run on < but I need the tests to work...
asked by 08.07.2015 / 16:46
2
answers

How to release CORS for a given address?

I'm not able to release CORS to link , I'm using Spring Security . I encounter the following error:    XMLHttpRequest can not load link . Response to preflight request does not pass access control check: In 'Access-Control...
asked by 01.11.2016 / 13:07
2
answers

Error in request Delete in Spring: console indicates that method is not supported

I am making a request via Ajax to delete a user and I get the message that the delete method is not supported, does anyone have any idea what it could be? My controller: package com.br.livraria.controller; import javax.servlet.http.HttpServ...
asked by 25.10.2017 / 14:53