A AuthMS API Wiki API Reference iam.tianv.com →

GET /public/key-exchange

生成临时 ECDH P-256 密钥对,返回服务端公钥和交换 ID。客户端用此公钥完成 ECDH → 派生 AES-256-GCM 会话密钥加密密码。

身份认证 - 内部接口 None application/json

Responses

StatusDescriptionSchema
200密钥交换参数gitee_com_linmes_authms_base_dto.DataResponse-dto_KeyExchangeResponse

Referenced Schemas

dto.KeyExchangeResponse

FieldTypeRequiredExampleConstraintsDescription
algorithm string No "ECDH-P256-HKDF-SHA256-AES256GCM"
expires_in integer No TTL in seconds
key_exchange_id string No
server_pub_key string No base64 ECDH P-256 public key

gitee_com_linmes_authms_base_dto.DataResponse-dto_KeyExchangeResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.KeyExchangeResponse No
message string No
timestamp string No