IceWhaleTech / CasaOS

CasaOS - A simple, easy-to-use, elegant open-source Personal Cloud system.
https://casaos.io
Apache License 2.0
26.17k stars 1.42k forks source link

WebUI Basic Authentication #702

Open Cp0204 opened 1 year ago

Cp0204 commented 1 year ago

Is your feature request related to a problem? Please describe.

很多应用的WebUI认证方式都是HTTP基本认证(Basic Authentication),例如:Syncthing、frp等,不能通过点击应用一键跳转登录。

The WebUI authentication method of many applications is HTTP Basic Authentication, for example: Syncthing, frp, etc., cannot be applied by clicking the button Jump to login.

Describe the solution you'd like

增加Basic Authentication字段,拼合形如 http://admin:passwd@host:post 的链接。

Add the Basic Authentication field and combine the links like http://admin:passwd@host:post.

Describe alternatives you've considered

WebUI 整段用提供变量,自定义拼合的方式。 例如:

  1. 提供变量 $host$ ,假设当前访问 CasaOS 的 host=casaos.baidu.com
  2. WebUI只有一个字段,填入 http://admin:passwd@$host$:1234/index
  3. 点击APP图标,跳转至 http://admin:passwd@casaos.baidu.com:1234/index
  4. 如WebUI字段留空,则APP不能点击/无反应。

The entire section of WebUI uses variables and custom stitching. E.g:

  1. Provide the variable $host$, assuming that the current access to CasaOS host=casaos.baidu.com
  2. WebUI has only one field, fill in http://admin:passwd@$host$:1234/index
  3. Click the APP icon and jump to http://admin:passwd@casaos.baidu.com:1234/index
  4. If the WebUI field is left blank, the APP cannot be clicked/no response.

Additional context

image

zhanghengxin commented 1 year ago

这是一个很棒的需求。 建议使用英文呀~

This is a great requirement

Cp0204 commented 1 year ago

这是一个很棒的需求。 建议使用英文呀~

This is a great requirement

好嘞,英文小学水平,恐怕就表达不清楚了 T T; 机翻了一下,见谅哈哈哈哈。