younifyd
Menu

Finish Webauthn User Registration

Finish WebAuthn registration

POST/organizations/{organizationId}/oauth2/webauthn/register/finish

Use it in a workflow

  1. Add a step and choose the Salesforce Commerce Cloud connector.
  2. Pick the Finish Webauthn User Registration action (under Auth (SLAS)).
  3. Fill in the fields below, then reference the result from later steps as {{finishWebauthnUserRegistration.response.data}}.

Request

Path parameters

organizationIdstringrequired

An identifier for the Salesforce Commerce Cloud organization the request is being made by. It consists of a prefix 'f_ecom_' followed by a 4-character [realm identifier](https://developer.salesforce.com/docs/commerce/commerce-api/guide/get-started.html) and a 3-character [instance type identifier](https://developer.salesforce.com/docs/commerce/commerce-api/guide/get-started.html#instance-types).

Headers

Authorizationstring

Base64-encoded string for HTTP Basic authentication. The string is composed of a client ID and client secret, separated by a colon (`:`). For example: `clientId:clientSecret`.

Request body

Enter the body as JSON in the step's Body field.

client_idstringrequired

The ID of the OAuth client.

usernamestringrequired

Username for the credential.

credentialobjectrequired

WebAuthn credential representation. The response field can contain either AuthenticatorAttestationResponseJson (for registration) or AuthenticatorAssertionResponseJson (for authentication).

idstringrequired

Base64url-encoded credential ID

rawIdstringrequired

Base64url-encoded raw credential ID.

typestringrequired

The type of credential.

One ofpublic-key

clientExtensionResultsstring

WebAuthn client extension results (typically empty).

responseoneOfrequired

Authenticator response (attestation for registration, assertion for authentication)

channel_idstringrequired

The ID of the channel.

pwd_action_tokenstringrequired

Password action token. The token length is either 6 or 8 digits, configurable in SLAS Admin.

json
{
  "client_id": "12345678-1234-1234-1234-123456789012",
  "username": "user@example.com",
  "credential": {
    "id": "AQIDBAUGBwgJCgsMDQ4PEA",
    "rawId": "AQIDBAUGBwgJCgsMDQ4PEA",
    "type": "public-key",
    "response": null,
    "clientExtensionResults": {
      "extensions": {}
    }
  },
  "channel_id": "RefArch",
  "pwd_action_token": "12345678"
}

Response

Returns 204 with a any. Read it in later steps with {{finishWebauthnUserRegistration.response.data.<field>}}.

Need more? See the Salesforce Commerce Cloud guide for connection setup and behaviour shared by every action.