Questions tagged as 'spring-security'

1
answer

How to configure the Auditor using Spring Boot 2.0.2

Here is a class I used with the spring framework version 4.3.4.RELEASE (I still did not use the spring boot) and it worked: import org.springframework.data.domain.AuditorAware; import org.springframework.security.core.Authentication; im...
asked by 23.05.2018 / 19:02
0
answers

How to use spring security isEnabled

I was wondering if I'm using the isEnabled method of spring security correctly. For in my system, every user has a list of profiles. If the admin removes all their profiles and the user attempts to log in with that account without a profile an e...
asked by 24.04.2018 / 16:16
1
answer

Error accessing route released with Spring boot

Good afternoon I have a problem in the release of routes for my application made with Spring boot. The problem is that the main route "/ home" requests the JWT token to access it, but it is configured to allow any kind of request from any user,...
asked by 13.06.2018 / 18:52
1
answer

get username logged in with Spring Security

Hello, I came here to ask for help on Spring Security. I would like to know how I can get the username of the logged in user. I use authentication with login and password but when I use the search method it returns me the login, and I need to...
asked by 26.04.2018 / 21:50
0
answers

How to use Oauth in the application.properties file?

I had an application.yml file using Oauth as follows: oauth: enabled: true all-in-one: true But now I need to use the application.properties file and the structure is different. I thought it was just like this: oauth.enabled= true...
asked by 28.03.2018 / 18:52
0
answers

TLS 1.2 in Spring Java

Does anyone know how to configure for the Java application to use TLS 1.2? Is this setting done in the Java application or the server? I'm using Spring 3.1 Thank you     
asked by 26.04.2018 / 17:44
1
answer

Error in project: JSF does not respond and neither does it show Message

I'm in a JSF project from the Java for Web book. It was doing fine, but I put the following code in JSF that, according to updates, should not work because the facelets-taglib-jsf20-spring- 3 has been removed, according to the book. Code below...
asked by 17.04.2018 / 03:06
3
answers

How to limit a user to only accessing their own data? [closed]

I'm developing a task list application for study, however, all users access all tasks. I wonder if anyone has implemented something like Spring Security and how they did it.     
asked by 07.03.2018 / 15:34
0
answers

what should @PreAuthorize do?

I am creating a simple crud with spring-mcv and spring-security . Everything is running perfectly spring-security.xml <b:bean id="handlerWeb1" class="org.springframework.security.web.access.expression.Def...
asked by 20.10.2017 / 22:50
1
answer

How to redirect request when @PreAuthorize returns false

I'm learning about Spring MVC and Spring Security . How do I redirect the page when the next line returns false within a @Controller ? @PostAuthorize(" hasRole('page')") If the above line returns true the...
asked by 22.10.2017 / 03:57