Skip to content
Snippets Groups Projects
Commit 8142e8d4 authored by Daniel Gerhardt's avatar Daniel Gerhardt
Browse files

Fix use of deprecated class

parent 6ec1e6d3
No related merge requests found
...@@ -44,7 +44,6 @@ import org.springframework.security.cas.web.CasAuthenticationEntryPoint; ...@@ -44,7 +44,6 @@ import org.springframework.security.cas.web.CasAuthenticationEntryPoint;
import org.springframework.security.core.Authentication; import org.springframework.security.core.Authentication;
import org.springframework.security.core.AuthenticationException; import org.springframework.security.core.AuthenticationException;
import org.springframework.security.core.GrantedAuthority; import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.GrantedAuthorityImpl;
import org.springframework.security.core.authority.SimpleGrantedAuthority; import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.context.SecurityContextHolder; import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.security.core.token.Sha512DigestUtils; import org.springframework.security.core.token.Sha512DigestUtils;
...@@ -289,7 +288,7 @@ public class LoginController extends AbstractController { ...@@ -289,7 +288,7 @@ public class LoginController extends AbstractController {
private Collection<GrantedAuthority> getAuthorities() { private Collection<GrantedAuthority> getAuthorities() {
List<GrantedAuthority> authList = new ArrayList<GrantedAuthority>(); List<GrantedAuthority> authList = new ArrayList<GrantedAuthority>();
authList.add(new GrantedAuthorityImpl("ROLE_USER")); authList.add(new SimpleGrantedAuthority("ROLE_USER"));
return authList; return authList;
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment