启用 2FA
1
开始设置
secret 以及一个可在控制台渲染的 qr_code_url。2
将账户添加到身份验证器 App
扫描二维码(或粘贴密钥)到 Google Authenticator、1Password、Authy 或任意兼容 TOTP 的 App。
3
确认验证码
使用 2FA 登录
启用 2FA 后,POST /api/auth/login 会返回一个挑战而非完整会话。验证验证码以完成登录:
token 加上一个 user 对象。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
为你的咏唱引擎账户开启基于 TOTP 的两步验证,管理活跃会话,并吊销被盗或不再使用的登录。
开始设置
curl -X POST https://ariacompute.cn/api/auth/2fa/setup \
-H "Authorization: Bearer eyJhbGciOi..."
secret 以及一个可在控制台渲染的 qr_code_url。将账户添加到身份验证器 App
确认验证码
curl -X POST https://ariacompute.cn/api/auth/2fa/enable \
-H "Authorization: Bearer eyJhbGciOi..." \
-H "Content-Type: application/json" \
-d '{"code": "123456"}'
POST /api/auth/login 会返回一个挑战而非完整会话。验证验证码以完成登录:
curl -X POST https://ariacompute.cn/api/auth/2fa/verify \
-H "Content-Type: application/json" \
-d '{"challenge": "chg_01H...", "code": "123456"}'
token 加上一个 user 对象。
curl -X POST https://ariacompute.cn/api/auth/2fa/disable \
-H "Authorization: Bearer eyJhbGciOi..." \
-H "Content-Type: application/json" \
-d '{"code": "123456"}'
curl -H "Authorization: Bearer eyJhbGciOi..." \
https://ariacompute.cn/api/auth/sessions
curl -X DELETE \
-H "Authorization: Bearer eyJhbGciOi..." \
https://ariacompute.cn/api/auth/sessions/sess_01H...
curl -X POST \
-H "Authorization: Bearer eyJhbGciOi..." \
https://ariacompute.cn/api/auth/sessions/revoke-others
curl -X POST \
-H "Authorization: Bearer eyJhbGciOi..." \
https://ariacompute.cn/api/auth/logout
bfvk- API 密钥。Was this page helpful?