Merge remote-tracking branch 'origin/pr/1042'
This commit is contained in:
+4
-1
@@ -6,9 +6,12 @@ import org.springframework.security.core.GrantedAuthority;
|
||||
import java.util.Collection;
|
||||
|
||||
public class JWTAuthenticationToken extends AbstractAuthenticationToken {
|
||||
|
||||
private final String token;
|
||||
private String requestedPath;
|
||||
|
||||
public static final String USERNAME_ANONYMOUS = "anonymous";
|
||||
|
||||
public JWTAuthenticationToken(Collection<? extends GrantedAuthority> authorities, String token, String requestedPath) {
|
||||
super(authorities);
|
||||
this.token = token;
|
||||
@@ -22,7 +25,7 @@ public class JWTAuthenticationToken extends AbstractAuthenticationToken {
|
||||
|
||||
@Override
|
||||
public Object getPrincipal() {
|
||||
return "GERNIC_JWT_PRINICPLE";
|
||||
return USERNAME_ANONYMOUS;
|
||||
}
|
||||
|
||||
public String getRequestedPath() {
|
||||
|
||||
Reference in New Issue
Block a user