diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index e011af1..bf97f43 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -47,6 +47,11 @@ zfile: header: header.md footer: footer.md password: password.txt + onedirve: + clientId: 09939809-c617-43c8-a220-a93c1513c5d4 + clientSecret: _l:zI-_yrW75lV8M61K@z.I2K@B/On6Q + redirectUri: http://localhost:8080/onedirve/callback + scope: offline_access User.Read Files.ReadWrite.All jetcache: statIntervalMinutes: 0 diff --git a/src/main/resources/db/data.sql b/src/main/resources/db/data.sql index b325085..cc9eb2f 100644 --- a/src/main/resources/db/data.sql +++ b/src/main/resources/db/data.sql @@ -50,3 +50,5 @@ INSERT INTO STORAGE_CONFIG (`ID`, `k`, `TITLE`, `TYPE`) VALUES (38, 'base-path', INSERT INTO STORAGE_CONFIG (`ID`, `k`, `TITLE`, `TYPE`) VALUES (39, 'base-path', '基路径', 'aliyun'); INSERT INTO STORAGE_CONFIG (`ID`, `k`, `TITLE`, `TYPE`) VALUES (40, 'base-path', '基路径', 'huawei'); INSERT INTO STORAGE_CONFIG (`ID`, `k`, `TITLE`, `TYPE`) VALUES (41, 'ftp', '基路径', 'ftp'); +INSERT INTO STORAGE_CONFIG (`ID`, `k`, `TITLE`, `TYPE`) VALUES (42, 'accessToken', '访问令牌', 'onedrive'); +INSERT INTO STORAGE_CONFIG (`ID`, `k`, `TITLE`, `TYPE`) VALUES (43, 'refreshToken', '刷新令牌', 'onedrive'); \ No newline at end of file diff --git a/src/main/resources/templates/callback.html b/src/main/resources/templates/callback.html new file mode 100644 index 0000000..9875655 --- /dev/null +++ b/src/main/resources/templates/callback.html @@ -0,0 +1,26 @@ + + +
+ +