- Site
- Session
- User
- Callback
- Workflow
- File
- Share
- VAS
- Group
- WebDAV
Prepare passkey registration
PUT
/user/authn
Auth: JWT Required
Request
Authorization
Add the parameter
Authorization
to Headers,whose value is to concatenate the Token after the Bearer.Example:
Authorization: Bearer ********************
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT '/user/authn'
Responses
🟢200Success
application/json
Body
data
objectÂ
optional
publicKey
objectÂ
required
code
integerÂ
required
0
- Success.Default:
0
Example:
0
msg
stringÂ
optional
error
string  | nullÂ
optional
correlation_id
string <uuid> | nullÂ
optional
Example:
b4351ecc-ee1a-4455-bc94-2c3dbcc58538
Example
{
"code": 0,
"data": {
"publicKey": {
"rp": {
"name": "Cloudreve",
"id": "localhost"
},
"user": {
"name": "luke@skywalker.com",
"displayName": "Luke Skywalker",
"id": "Ym5Vbg"
},
"challenge": "TSMn9HYi5vCJasIbJYRwEgf4nHVzHU_ldZUzeySb5Uk",
"pubKeyCredParams": [
{
"type": "public-key",
"alg": -7
},
{
"type": "public-key",
"alg": -35
},
{
"type": "public-key",
"alg": -36
},
{
"type": "public-key",
"alg": -257
},
{
"type": "public-key",
"alg": -258
},
{
"type": "public-key",
"alg": -259
},
{
"type": "public-key",
"alg": -37
},
{
"type": "public-key",
"alg": -38
},
{
"type": "public-key",
"alg": -39
},
{
"type": "public-key",
"alg": -8
}
],
"timeout": 300000,
"excludeCredentials": [
{
"type": "public-key",
"id": "-l161nXQn7juNPvQ8dlkbQ"
}
],
"authenticatorSelection": {
"requireResidentKey": true,
"userVerification": "preferred"
}
}
},
"msg": ""
}
Modified at 2025-06-13 02:40:07