修改security中实体结构,增加roleScope属性

This commit is contained in:
ajaxfan
2021-04-25 15:19:05 +08:00
parent c245275dd3
commit fa98b5fdef
2 changed files with 4 additions and 3 deletions

View File

@ -7,9 +7,10 @@ import lombok.Data;
@Data @Data
public class AuthorityEntity { public class AuthorityEntity {
private String roleId;
private String roleName; private String roleName;
private String roleCode; private String roleCode;
private String roleId; private String roleScope;
private List<String> authorities; private List<String> authorities;
} }

View File

@ -89,7 +89,7 @@ public class FeignConfig implements RequestInterceptor {
.ifPresent(token -> { .ifPresent(token -> {
String authToken = token.getValue(); String authToken = token.getValue();
log.info("FeignConfig request header (from cookie): {}", 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)); template.header(AUTHORIZATION_HEADER, String.format("%s%s", TOKEN_PREFIX, authToken));
}); });
}); });