The FIDO2 Rest API (version v2).
Download the OpenAPI definition (YAML)
Security schemes
BasicAuth: HTTP basic
OAuth2: oauth2
authorizationCode flow, token URL https://localhost:9443/oauth2/token, authorization URL https://localhost:9443/oauth2/authorize
Operations for the authenticated user.
Trigger FIDO2 device registration
POST /start-registration
This API is used to trigger the FIDO2 device registration flow.
Scope(Permission) required: internal_login
Request body (required): application/x-www-form-urlencoded
Schema: object
1 property
| Name | Type | Required | Description |
|---|
appId | string | Yes | Represents the hostname of the FIDO request initiator. |
Responses
| Code | Description | Schema |
|---|
201 | Successful response | object |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Resource Forbidden | |
409 | Conflict | Error |
500 | Server Error | Error |
Trigger FIDO2 usernameless device registration
POST /start-usernameless-registration
This API is used to trigger the FIDO2 usernameless device registration flow.
Scope(Permission) required: internal_login
Request body (required): application/x-www-form-urlencoded
Schema: object
1 property
| Name | Type | Required | Description |
|---|
appId | string | Yes | Represents the hostname of the FIDO request initiator. |
Responses
| Code | Description | Schema |
|---|
201 | Successful response | object |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Resource Forbidden | |
409 | Conflict | Error |
500 | Server Error | Error |
Complete FIDO2 device registration
POST /finish-registration
This API is used to complete the FIDO2 device registration flow.
Scope(Permission) required: internal_login
Request body (required): application/json
Response from the client.
Schema: string
Responses
| Code | Description | Schema |
|---|
201 | Device registered successfully. | object |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Resource Forbidden | |
409 | Conflict | Error |
500 | Server Error | Error |
Deregister devices by username and credentialId
DEL /{credentialId}
This API is used to deregister devices by username and credentialId.
Scope(Permission) required: internal_login
Parameters
| Name | In | Type | Required | Description |
|---|
credentialId | path | string | Yes | credentialId |
Responses
| Code | Description | Schema |
|---|
204 | No Content | |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Resource Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Update display name of device by username and credentialId
PATCH /{credentialId}
This API is used to update the display name of a device by username and credentialId.
Scope(Permission) required: internal_login
Parameters
| Name | In | Type | Required | Description |
|---|
credentialId | path | string | Yes | credentialId |
Request body (required): application/json
Schema: PatchRequest
Responses
Device Metadata
GET /
This API is used to get FIDO metadata by username
Scope(Permission) required: internal_login
Responses
| Code | Description | Schema |
|---|
200 | All available FIDO metadata for a user. | RegistrationObject |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Resource Forbidden | |
500 | Server Error | Error |
Schemas
Error
Type: object
3 properties
| Name | Type | Required | Description |
|---|
code | string | | |
message | string | | |
description | string | | |
PatchRequest
Type: array of Patch
Patch
Type: object
A JSONPatch as defined by RFC 6902. Patch operation is supported only for root-level attributes of an Identity Provider.
3 properties
| Name | Type | Required | Description |
|---|
operation | string | Yes | The operation to be performed Allowed values: ADD, REMOVE, REPLACE |
path | string | Yes | A JSON-Pointer |
value | string | | The value to be used within the operations |
RegistrationObject
Type: array of object