Skip to main content

FIDO API

Download OpenAPI (YAML)Version v2

Base URL: https://localhost:9443/t/carbon.super/api/users/v2/me/webauthn

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

me​

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
NameTypeRequiredDescription
appIdstringYes

Represents the hostname of the FIDO request initiator.

Responses

CodeDescriptionSchema
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
NameTypeRequiredDescription
appIdstringYes

Represents the hostname of the FIDO request initiator.

Responses

CodeDescriptionSchema
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

CodeDescriptionSchema
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

NameInTypeRequiredDescription
credentialIdpathstringYes

credentialId

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
credentialIdpathstringYes

credentialId

Request body (required): application/json

Schema: PatchRequest

Responses

CodeDescriptionSchema
200

Successful response

RegistrationObject
400

Bad Request

Error
401

Unauthorized

403

Resource Forbidden

404

Not Found

Error
500

Server Error

Error

Device Metadata​

GET /

This API is used to get FIDO metadata by username

Scope(Permission) required: internal_login

Responses

CodeDescriptionSchema
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
NameTypeRequiredDescription
codestring
messagestring
descriptionstring

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
NameTypeRequiredDescription
operationstringYes

The operation to be performed

Allowed values: ADD, REMOVE, REPLACE

pathstringYes

A JSON-Pointer

valuestring

The value to be used within the operations

RegistrationObject​

Type: array of object

Was this page helpful?