Questions tagged as 'spring-security'

1
answer

Given final block not properly padded

Good to everyone, I'm having problems in a web application in Spring that uses certificates and a CAS / SSO service to authenticate, the problem comes from the beginning. I have the outsourced properties, so I receive all the data from extern...
asked by 21.11.2017 / 10:22
1
answer

login with spring boot using jdbc

How can I authenticate in spring boot using jdbc auth .jdbcAuthentication() .dataSource(dataSource).passwordEncoder(new Md5PasswordEncoder()) .usersByUsernameQuery("select username,password,enabled from user where u...
asked by 23.10.2017 / 02:23
1
answer

Spring Security Logout does not work

Hi, I'm using Spring Security 4 in my application and I have the following configuration for the Login http.authorizeRequests() //.antMatchers("/cliente/**").access("hasAnyAuthority('OPERADOR')") //.antMatchers(HttpMethod.POS...
asked by 12.09.2017 / 13:26
1
answer

What is the correct way to use enum java

How can I use enum as roles to authenticate in a java web app? public enum Role { ROLE_ADMIN,ROLE_USER; } I am using the spring boot framework and thus the roles are valid: @GetMapping("/home") public String defaultAfterLogin(Ht...
asked by 26.09.2017 / 15:07
0
answers

Configure x509 in Spring MVC

I need some advice with an application that my team and I are developing. The issue is that we have been asked to create an application that can be accessed through PKI. We have given the .cer and the .key to validate, and a configured nginx...
asked by 07.09.2017 / 07:44
1
answer

Error @PreAuthorize (), null pointer exception in @Service UserService

I am developing a web application that registers visitors to a facility. I try to restrict the entry to a section of the application so that only logged-in users with administrator roles can access it. This is my controller: @Controller @PreAu...
asked by 05.06.2017 / 14:37
1
answer

Problems with doing maintenance on java spring

I try to incorporate a simple maintenance "Add users" to a project with spring security but I get these errors, I'm guiding myself on another project but it works with ldap type Informe de Excepción mensaje Servlet.init() para servlet mvc...
asked by 02.02.2017 / 17:39