Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ARSnova Backend
Manage
Activity
Members
Labels
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
Show more breadcrumbs
Paul-Christian Volkmer
ARSnova Backend
Commits
e0611583
Commit
e0611583
authored
10 years ago
by
Paul-Christian Volkmer
Browse files
Options
Downloads
Patches
Plain Diff
Removed unused service
parent
d4fce181
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/thm/arsnova/OpenidUserDetailsService.java
+0
-48
0 additions, 48 deletions
src/main/java/de/thm/arsnova/OpenidUserDetailsService.java
with
0 additions
and
48 deletions
src/main/java/de/thm/arsnova/OpenidUserDetailsService.java
deleted
100644 → 0
+
0
−
48
View file @
d4fce181
/*
* 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
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment