dsh-oauth-adapter
其他 活跃维护

dsh-oauth-adapter

edge-sky/dsh-oauth-adapter

轻量级目标平台OAuth认证适配组件,开箱即用支持主流OAuth 2.0协议,可快速完成目标平台与第三方身份服务的对接,无需复杂配置即可实现安全可靠的授权认证流程。

3
Stars 标星
0
Forks 分支
3
Watchers 关注
0
Open Issues
TypeScript
主要语言
MIT
开源协议
80 KB
仓库大小
3 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:edge-sky/dsh-oauth-adapter
git clone https://github.com/edge-sky/dsh-oauth-adapter.git
git clone git@github.com:edge-sky/dsh-oauth-adapter.git
README.md main

dsh-oauth-adapter

English | 中文

An OAuth account page for the DSH Web profile. It supports:

  • [x] OpenAI Codex
  • [x] GitHub Copilot

The adapter has only been tested with DSH 0.1.1-rc.2; compatibility with future versions is not guaranteed.

Install

dsh plugin --profile web add @edge-sky/dsh-oauth-adapter

or

npx @deepseek-ai/dsh plugin --profile web add @edge-sky/dsh-oauth-adapter

Start DSH:

npx @deepseek-ai/dsh web
image image

How it works

DSH integrates pi-ai through the @deepseek-ai/dsh-llm-pi-ai adapter, but does not provide an OAuth entry point. @edge-sky/dsh-oauth-adapter registers pi-ai's existing Codex and Copilot login flows with the DSH Authorization Service.

Because DSH does not currently mount the ctx.authorization service, this plugin also mounts it manually.

The plugin itself does not manage OAuth credentials or maintain login state. Maybe DSH support this sign-in method in the future; but for now, this plugin lets you enjoy it.