Autional Autional
API Reference GitHub autional.com →

GET /public/key-exchange

Generate a temporary ECDH P-256 key pair, return the server public key and exchange ID. The client uses this public key to complete ECDH → derive AES-256-GCM session key to encrypt the password.

Authentication - Internal None application/json

Responses

StatusDescriptionSchema
200Key exchange parametersgitee_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