Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve kernel API authentication #9702

Merged
merged 5 commits into from
Nov 21, 2023

Conversation

Zuoqiu-Yingyi
Copy link
Contributor

  • Please commit to the dev branch
  • For contributing new features, please supplement and improve the corresponding user guide documents
  • 添加 API /api/network/echo
    Add API /api/network/echo
    • 该 API 可以回显请求体, 帮助开发者测试 Web 服务
      The API can echo the request body to help developers test web services
  • 优化本机校验
    Optimized localhost checking
  • 删除 API GET /api/broadcast/channels
    Delete API GET /api/broadcast/channels
    • 该 API 在鉴权失败时会被重定向至 /check-auth
      The API will be redirected to /check-auth when authentication fails
    • 添加用于替代的 API POST /api/broadcast/getChannels
      Add API POST /api/broadcast/getChannels for overrides
  • 为一些 API 添加只读模式鉴权
    Add read-only mode authentication to some APIs
    • /api/storage/setLocalStorage
    • /api/storage/setLocalStorageVal
    • /api/notebook/openNotebook
    • /api/notebook/removeNotebook
    • /api/search/removeTemplate
    • /api/attr/setBlockAttrs
    • /api/sync/importSyncProviderS3
    • /api/sync/importSyncProviderWebDAV
    • /api/riff/resetRiffCards
    • /api/snippet/setSnippet
    • /api/av/setAttributeViewBlockAttr
    • /api/archive/zip
    • /api/archive/unzip
  • 删除一些 API 的只读模式鉴权
    • /api/history/searchHistory
    • /api/history/getHistoryItems
    • /api/search/findReplace
    • /api/block/getParentNextChildID
    • /api/file/readDir
    • /api/sync/listCloudSyncDir
    • /api/asset/getDocImageAssets
    • /api/template/renderSprig
    • /api/ai/chatGPT
    • /api/ai/chatGPTWithAction
    • /api/network/forwardProxy

/api/storage/setLocalStorage
/api/storage/setLocalStorageVal
/api/notebook/openNotebook
/api/notebook/removeNotebook
/api/search/removeTemplate
/api/attr/setBlockAttrs
/api/sync/importSyncProviderS3
/api/sync/importSyncProviderWebDAV
/api/riff/resetRiffCards
/api/snippet/setSnippet
/api/av/setAttributeViewBlockAttr
/api/archive/zip
/api/archive/unzip
/api/history/searchHistory
/api/history/getHistoryItems
/api/search/findReplace
/api/block/getParentNextChildID
/api/file/readDir
/api/sync/listCloudSyncDir
/api/asset/getDocImageAssets
/api/template/renderSprig
/api/ai/chatGPT
/api/ai/chatGPTWithAction
@88250 88250 self-requested a review November 21, 2023 13:40
@88250 88250 changed the title Improved API authentication Improve kernel API authentication Nov 21, 2023
@88250 88250 added this to the 2.11.0 milestone Nov 21, 2023
@88250 88250 merged commit cb016aa into siyuan-note:dev Nov 21, 2023
1 check passed
@Zuoqiu-Yingyi Zuoqiu-Yingyi deleted the perf/api-check-auth branch November 21, 2023 13:52
@Moe39118
Copy link

Let me play

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants