修改security中实体结构,增加roleScope属性
This commit is contained in:
@ -7,9 +7,10 @@ import lombok.Data;
|
||||
@Data
|
||||
public class AuthorityEntity {
|
||||
|
||||
private String roleId;
|
||||
private String roleName;
|
||||
private String roleCode;
|
||||
private String roleId;
|
||||
private String roleScope;
|
||||
private List<String> authorities;
|
||||
|
||||
}
|
||||
|
@ -89,7 +89,7 @@ public class FeignConfig implements RequestInterceptor {
|
||||
.ifPresent(token -> {
|
||||
String authToken = token.getValue();
|
||||
log.info("FeignConfig request header (from cookie): {}",
|
||||
String.format("%s %s%s", AUTHORIZATION_HEADER, TOKEN_PREFIX, authToken));
|
||||
String.format("%s: %s%s", AUTHORIZATION_HEADER, TOKEN_PREFIX, authToken));
|
||||
template.header(AUTHORIZATION_HEADER, String.format("%s%s", TOKEN_PREFIX, authToken));
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user