Registration Options Service
By calling the Registration Options Service and requesting a ServerPublicKeyCredentialCreationOptionsResponse object from the FIDO2 server. This chapter describes the request and response messages between the FIDO2 Relying Party client and Server when calling the Registration Options Service.
It is recommended to protect this service using a SecToken.
Base URL
All URLs referenced in this section have the following base:
https://fido.siven.ch/nevisfido/fido2/attestation/options
HTTP Methods
POST and OPTIONS are the only supported HTTP method.
Request Headers
The following request headers are mandatory:
| Name | Description |
|---|---|
Accept | Accept header, must be application/json. |
Content-Type | Content type header, must be application/json. |
Request Body
The Registration Options Service requires from the FIDO2 client side of the Relying Party a JSON payload with a ServerPublicKeyCredentialOptionsRequest object. This object has the following structure:
| Attribute | Type | Description | Optional |
|---|---|---|---|
username | String | Should match conceptually with the user-attribute in the credential-repository. | false |
displayName | String | Human-palatable name for the user account. Intended only for display. | false |
authenticatorSelection | Object | AuthenticatorSelectionCriteria to select the appropriate authenticators to participate in the registration. | true |
authenticatorSelection.authenticatorAttachment | String | Describes the authenticators' attachment modalities. | true |
authenticatorSelection.requireResidentKey | Boolean | Backwards compatibility, SHOULD set it to true if, and only if, residentKey is set to required. | true |
authenticatorSelection.residentKey | String | Specifies the extent to which the Relying Party desires to create a client-side discoverable credential. | true |
authenticatorSelection.userVerification | String | This member describes the Relying Party's requirements regarding user verification for the create() operation. | true |
attestation | String | Specify preference regarding attestation conveyance during credential generation. | true |