pull/1234/merge
hengyunabc 4 years ago
parent 7f955a537e
commit a909f8f1a3

@ -43,4 +43,13 @@ Authentication result: true
Arthas 采用的是 HTTP 标准的 Basic Authorization客户端请求时增加对应的header即可。
* 参考:[https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication](https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication)
* 参考:[https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication](https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication)
例如,用户名是:`admin`,密码是 `admin`,则组合为字符串: `admin:admin`base64结果是 `YWRtaW46YWRtaW4='`则HTTP 请求增加`Authorization` header
```bash
curl 'http://localhost:8563/api' \
-H 'Authorization: Basic YWRtaW46YWRtaW4=' \
--data-raw '{"action":"exec","command":"version"}'
```

@ -42,4 +42,12 @@ After success, you can directly connect to the web console.
Arthas uses the HTTP standard Basic Authorization.
* Reference: [https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication](https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication)
* Reference: [https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication](https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication)
For example, if the user name is: `admin` and the password is `admin`, the combination is a string: `admin:admin`, the base64 result is: `YWRtaW46YWRtaW4='`, then the HTTP request adds the `Authorization` header:
```bash
curl 'http://localhost:8563/api' \
-H 'Authorization: Basic YWRtaW46YWRtaW4=' \
--data-raw '{"action":"exec","command":"version"}'
```

@ -492,6 +492,10 @@ curl -Ss -XPOST http://localhost:8563/api -d '''
}
```
### Authentication
* Reference: [auth](auth.md)
### Web UI
![](../_static/arthas-web-ui.png "arthas web ui")

@ -434,6 +434,10 @@ curl -Ss -XPOST http://localhost:8563/api -d '''
}
```
### 鉴权
参考: [auth](auth.md)
### Web UI
![](_static/arthas-web-ui.png "arthas web ui")

Loading…
Cancel
Save