一个通用的文件服务器认证访问的设计,解决 https://www.gitlink.org.cn/kk-open/kkFileView/issues/3 的问题

This commit is contained in:
YiwenXia
2023-09-19 23:32:45 +08:00
parent 7e0f7f6608
commit 713edcfb8d
3 changed files with 44 additions and 2 deletions

View File

@ -20,6 +20,13 @@ public class FileAttribute {
private Boolean skipDownLoad = false;
private Boolean forceUpdatedCache = false;
/**
* 代理请求到文件服务器的认证请求头,格式如下:
* {“username”:"test","password":"test"}
* 请求文件服务器时,会将 json 直接塞到请求头里
*/
private String kkProxyAuthorization;
public FileAttribute() {
}
@ -124,4 +131,11 @@ public class FileAttribute {
this.forceUpdatedCache = forceUpdatedCache;
}
public String getKkProxyAuthorization() {
return kkProxyAuthorization;
}
public void setKkProxyAuthorization(String kkProxyAuthorization) {
this.kkProxyAuthorization = kkProxyAuthorization;
}
}