Initiate Registration
To register a user with Passkeys using the API you first need to make sure you have the values for your request headers set up by following the Unauthenticated Requests setup guide.
Once you have your values for x-scope-id
and x-encrypted-key
setup. You can now initiate a user registration.
The initiateRegistration method initiates the user registration process within a specific scope. It generates a registration challenge that the user must solve to proceed with their registration.
HTTP Method: POST
X-Scope-Id: A UUID string representing the application scope.
X-Encrypted-Key: A string containing the encrypted key for secure communication.
Body:
encrypted_user: String - A base64-encoded string containing encrypted user data.
The encrypted_user
is generated by RSA encrypting the user parameters with the non-encrypted AES key you generated when following Unauthenticated Requests, and by using the following aesEncrypt
function.
Now we can encrypt our user parameters and pass that value as our encrypted_user
in our API request.
Response Spec
challenge_id: String - A UUID that uniquely identifies the registration challenge.
encrypted_creation_challenge: String - A base64-encoded string representing the encrypted challenge that the user must solve to proceed with registration.
Request Example
Response Example
Last updated