diff --git a/src/main/java/de/thm/arsnova/OpenidUserDetailsService.java b/src/main/java/de/thm/arsnova/OpenidUserDetailsService.java deleted file mode 100644 index aca25f32ebe71d4064069e8bffa0b1e3cea549c9..0000000000000000000000000000000000000000 --- a/src/main/java/de/thm/arsnova/OpenidUserDetailsService.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2012 THM webMedia - * - * This file is part of ARSnova. - * - * ARSnova is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * ARSnova is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ -package de.thm.arsnova; - -import java.util.ArrayList; -import java.util.List; - -import org.springframework.security.core.GrantedAuthority; -import org.springframework.security.core.authority.GrantedAuthorityImpl; -import org.springframework.security.core.userdetails.User; -import org.springframework.security.core.userdetails.UserDetails; -import org.springframework.security.core.userdetails.UserDetailsService; -import org.springframework.stereotype.Service; - -@Service -public class OpenidUserDetailsService implements UserDetailsService { - - public final UserDetails loadUserByUsername(final String openIdIdentifier) { - final List<GrantedAuthority> grantedAuthorities = new ArrayList<GrantedAuthority>(); - grantedAuthorities.add(new GrantedAuthorityImpl("ROLE_USER")); - - return new User( - openIdIdentifier, - "", - true, - true, - true, - true, - grantedAuthorities - ); - } -}