aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/server/security/entities
diff options
context:
space:
mode:
authorGravatar Alexander Alexeev2016-11-26 04:34:01 +0700
committerGravatar Alexander Alexeev2016-11-26 04:34:01 +0700
commitb0d89589ae42ba9c099ef934c39bebc6b0a75f7f (patch)
tree41590869ff2fc1361fdb01850dbf73299b31ab58 /juick-server/src/main/java/com/juick/server/security/entities
parente23b49135db49f3ee663fa1aab0686eca971a1cc (diff)
logging on provider
Diffstat (limited to 'juick-server/src/main/java/com/juick/server/security/entities')
-rw-r--r--juick-server/src/main/java/com/juick/server/security/entities/JuickUser.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/juick-server/src/main/java/com/juick/server/security/entities/JuickUser.java b/juick-server/src/main/java/com/juick/server/security/entities/JuickUser.java
index 6cc002ae..fd06b65b 100644
--- a/juick-server/src/main/java/com/juick/server/security/entities/JuickUser.java
+++ b/juick-server/src/main/java/com/juick/server/security/entities/JuickUser.java
@@ -12,18 +12,18 @@ import java.util.Collections;
* Created by aalexeev on 11/21/16.
*/
public class JuickUser implements UserDetails {
- private static final GrantedAuthority ROLE_USER = new SimpleGrantedAuthority("ROLE_USER");
+ public static final GrantedAuthority ROLE_USER = new SimpleGrantedAuthority("ROLE_USER");
+ public static final Collection<? extends GrantedAuthority> USER_AUTHORITY = Collections.singletonList(ROLE_USER);
private final com.juick.User user;
-
public JuickUser(com.juick.User user) {
this.user = user;
}
@Override
public Collection<? extends GrantedAuthority> getAuthorities() {
- return Collections.singletonList(ROLE_USER);
+ return USER_AUTHORITY;
}
@Override