Questions tagged as 'spring-security'

0
answers

Spring security set the Token in the Headers

I configured Cross to accept the request in AngularJS, but the answer comes without the token. How do I add the token to the response? Spring security: @Override protected void configure(HttpSecurity http) throws Exception { http.header...
asked by 15.08.2017 / 13:52
1
answer

How to make a Spring Security, JSF 2.2 and ManagedBean login?

Hello. I need help. I'm configuring Spring Security in a JSF 2.2 Project. Using Annotation. I've already set up the filters. But I do not understand how to configure the ManagedBean of the login to search the database and log in to JSF. Below is...
asked by 03.04.2017 / 15:23
0
answers

Access Danied - Spring Boot and Oauth2

I have a problem, I'm testing an api with spring boot and oauth2, but when requesting the token the same is generated and sent to the browser, however when sending to the resource I only get access danied, below the codes: ServerAuthorization...
asked by 21.03.2017 / 00:33
1
answer

Problem passing information on my login

I'm getting this exception when I log in ERROR [org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter] (default task-10) An internal error occurred while trying to authenticate the user.: org.springframework.se...
asked by 30.03.2017 / 14:55
0
answers

Integration between SpringSecurity and SpringData to use SpEL

Good afternoon I'm creating a routine where I need to use Spel to access Authentication data directly in the SpringData @Query, I followed the SpringData tutorial itself to perform the configuration: SpringData with SpEL After followi...
asked by 13.12.2016 / 17:08
1
answer

How to configure a repository I created for Spring Security (Basic)

I'm in a project and will use Basic Auth of Spring Security , I'd like to know how I can configure it to use users created with my Repository . Entity: @Entity public class User extends SuperEntity { private String name; privat...
asked by 14.10.2016 / 01:13
0
answers

Spring Security and Shiro - How to authenticate a user in Security and pass a token to the Shiro

I have two web applications: the first web application is using Spring MVC and Security and it authenticates the user to the database. And it works very well, thanks. The second web-app is using Shiro to login user in y...
asked by 04.10.2016 / 03:26
0
answers

Spring security

I would like to know how to configure spring security so that it can have two forms of authentication. When configuring in my application the same when uploading the application generates the following error:    Caused by: java.lang...
asked by 21.06.2016 / 11:45
1
answer

Custom Session generated by spring

I have the following scenario: a nodejs application that saves the session in redis. another spring application that also saves the session in redis. I would like to share this same session between the two applications. I thought of the...
asked by 30.01.2016 / 16:38
1
answer

Retrieve Cookies in Authentication with Spring Security

How can I recover cookies when the user logs in through Spring Security and with the implementation of the AuthenticationProvider interface? If I retrieve an instance of HttpServletRequest from a class with a controller I have acce...
asked by 16.12.2015 / 13:02