bilibili-API-collect/other/API_auth.md
2020-07-09 16:34:50 +08:00

18 lines
620 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# API认证与鉴权
## cookie方式
cookie中的值在访问登录接口成功登录时用`set-cookie`写入
在访问api时为`Cookie`头的数据
Token有效期为1月更改密码或过期失效
| cookie项 | 含义 | 备注 |
| ----------------- | ----------------- | ------------------ |
| DedeUserID | 当前用户UID | |
| DedeUserID__ckMd5 | 用户UID md5校验值 | |
| SESSDATA | 登录Token | 用于用户识别与鉴权 |
| bili_jct | CSRF Token | 用于操作性接口 |