Login users using WebAuthn biometrics integrated into your native login experience. Although WebAuthn authentication and registration is initiated in the frontend, the flows are completed using a backend-to-backend integration. The client-side integration can also be implemented using the Transmit Platform SDK.
WebAuthn
Request
Start a new webauthn authentication. If successful, the response will contain a credential_request_options field that should be passed in the WebAuthn navigator.credentials.get() API call. Note that some fields (challenge and each id in the allowCredentials list) in the credential_request_options object are base64 encoded and must first be decoded and converted to array buffer, it is recommended to use the webauthn-json library that handles this.
The timeout in seconds for the authentication modal. Must be between 30 and 600. Default is 300 seconds.
Name of user account, as used in the WebAuthn registration. If not provided, the authentication will start without the context of a user and it will be inferred by the chosen passkey
Flat object that contains the data that your customer should approve for a transaction signing or custom approval flow. It can contain up to 10 keys, and only alphanumeric characters, underscores, hyphens, and periods. It will be returned as a claim in the ID token upon successful authentication.
- Sandbox environmenthttps://api.sbx.transmitsecurity.io/cis/v1/auth/webauthn/authenticate/start
- Production environment (US)https://api.transmitsecurity.io/cis/v1/auth/webauthn/authenticate/start
- Production environment (EU)https://api.eu.transmitsecurity.io/cis/v1/auth/webauthn/authenticate/start
- Production environment (CA)https://api.ca.transmitsecurity.io/cis/v1/auth/webauthn/authenticate/start
- Production environment (AU)https://api.au.transmitsecurity.io/cis/v1/auth/webauthn/authenticate/start
- cURL
- Node.js
- Go
- JavaScript
- Java
- Python
curl -i -X POST \
https://api.sbx.transmitsecurity.io/cis/v1/auth/webauthn/authenticate/start \
-H 'Content-Type: application/json' \
-d '{
"client_id": "string",
"timeout": 0,
"username": "string",
"approval_data": {
"transaction_id": "eFII2y40uB9hQ98nXt3tc1IHkRt8GrRZiqZuRn_59wT",
"sum": "200"
}
}'Authentication options
Key type. Should always be public-key
Represents the natural WebAuthn challenge. Will Only be present in approval flows
Relying Party ID. Must be a valid domain pre-configured in the Admin Portal for the application
{ "webauthn_session_id": "string", "credential_request_options": { "allowCredentials": [ … ], "rawChallenge": "string", "challenge": "string", "timeout": 0, "rpId": "string", "attestation": "none", "userVerification": "preferred", "extensions": {} } }
Resource URI the authentication request is attempting to access, which is reflected in the audience (aud claim) of the access token. This must be configured as resource for the application.
Used to request additional claims in the ID token, such as roles, permissions, and other user profile data. The structure is per the OIDC Standard. For supported claims and how to request custom claims, see the ID Token Reference.
Used to associate the authentication with an existing session (such as for MFA). If unspecified, a new session is created and the session ID is returned.
- Sandbox environmenthttps://api.sbx.transmitsecurity.io/cis/v1/auth/webauthn/authenticate
- Production environment (US)https://api.transmitsecurity.io/cis/v1/auth/webauthn/authenticate
- Production environment (EU)https://api.eu.transmitsecurity.io/cis/v1/auth/webauthn/authenticate
- Production environment (CA)https://api.ca.transmitsecurity.io/cis/v1/auth/webauthn/authenticate
- Production environment (AU)https://api.au.transmitsecurity.io/cis/v1/auth/webauthn/authenticate
- cURL
- Node.js
- Go
- JavaScript
- Java
- Python
curl -i -X POST \
https://api.sbx.transmitsecurity.io/cis/v1/auth/webauthn/authenticate \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"resource": "string",
"claims": {
"id_token": {
"roles": null
}
},
"org_id": "string",
"client_attributes": {
"user_agent": "string",
"ip_address": "string"
},
"session_id": "string",
"webauthn_encoded_result": "string"
}'{ "access_token": "string", "id_token": "string", "refresh_token": "string", "token_type": "string", "expires_in": 3600, "session_id": "string" }
Request
Initializes a hosted WebAuthn registration flow for a logged-out user (see Quickstart). This API is used to securely set the WebAuthn username in the backend, and returns a registration token used to start the registration flow. Relevant only for hosted login scenarios
Account name for this Relying Party. This is used both for display purposes, as well as during recovery flows where the user is asked for the account name.
Human-palatable name for the user account, only for display (max 64 characters). If not set, the username parameter will also act as the display name
A unique identifier in the tenant, which corresponds to an identifier of the user in your system.
- Sandbox environmenthttps://api.sbx.transmitsecurity.io/cis/v1/auth/webauthn/external/register/hosted/hint
- Production environment (US)https://api.transmitsecurity.io/cis/v1/auth/webauthn/external/register/hosted/hint
- Production environment (EU)https://api.eu.transmitsecurity.io/cis/v1/auth/webauthn/external/register/hosted/hint
- Production environment (CA)https://api.ca.transmitsecurity.io/cis/v1/auth/webauthn/external/register/hosted/hint
- Production environment (AU)https://api.au.transmitsecurity.io/cis/v1/auth/webauthn/external/register/hosted/hint
- cURL
- Node.js
- Go
- JavaScript
- Java
- Python
curl -i -X POST \
https://api.sbx.transmitsecurity.io/cis/v1/auth/webauthn/external/register/hosted/hint \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"webauthn_identifier": "string",
"webauthn_display_name": "string",
"external_user_id": "string",
"redirect_uri": "string"
}'{ "register_webauthn_cred_token": "string" }
Request
Starts a registration of WebAuthn credentials for a specified user, returning a challenge to be signed by the client. If successful, the response will contain a credential_creation_options field that should be passed in the WebAuthn navigator.credentials.create() API call. Note that some fields (user.id and challenge) in the credential_creation_options object are base64 encoded and must first be decoded and converted to an array buffer. It is recommended to use the webauthn-json library that handles this.
Account name for this Relying Party. This is used both for display purposes, as well as during recovery flows where the user is asked for the account name.
Human-palatable name for the user account, only for display (max 64 characters). If not set, the username parameter will also act as the display name
The timeout in seconds for the registration modal. Must be between 30 and 600. Default is 300 seconds.
- Sandbox environmenthttps://api.sbx.transmitsecurity.io/cis/v1/auth/webauthn/register/start
- Production environment (US)https://api.transmitsecurity.io/cis/v1/auth/webauthn/register/start
- Production environment (EU)https://api.eu.transmitsecurity.io/cis/v1/auth/webauthn/register/start
- Production environment (CA)https://api.ca.transmitsecurity.io/cis/v1/auth/webauthn/register/start
- Production environment (AU)https://api.au.transmitsecurity.io/cis/v1/auth/webauthn/register/start
- cURL
- Node.js
- Go
- JavaScript
- Java
- Python
curl -i -X POST \
https://api.sbx.transmitsecurity.io/cis/v1/auth/webauthn/register/start \
-H 'Content-Type: application/json' \
-d '{
"client_id": "string",
"username": "string",
"display_name": "string",
"timeout": 0,
"limit_single_credential_to_device": false
}'{ "webauthn_session_id": "string", "credential_creation_options": { "attestation": "none", "authenticatorSelection": { … }, "extensions": { … }, "excludeCredentials": [ … ], "pubKeyCredParams": [ … ], "timeout": 0, "challenge": "string", "user": { … }, "rp": { … } } }
Request
Complete WebAuthn credential registration for a user that is currently logged in using a different Transmit authentication method. This API must be called from the backend using the user access token returned upon successful authentication. If successful, the credential will be registered for the user that corresponds to the authorization token.
WebAuthn attestation data returned by the browser upon credential creation, which must be converted from array buffer to a base64 string. If webauthn-json create() was used, this is already taken care of.
- Sandbox environmenthttps://api.sbx.transmitsecurity.io/cis/v1/auth/webauthn/register
- Production environment (US)https://api.transmitsecurity.io/cis/v1/auth/webauthn/register
- Production environment (EU)https://api.eu.transmitsecurity.io/cis/v1/auth/webauthn/register
- Production environment (CA)https://api.ca.transmitsecurity.io/cis/v1/auth/webauthn/register
- Production environment (AU)https://api.au.transmitsecurity.io/cis/v1/auth/webauthn/register
- cURL
- Node.js
- Go
- JavaScript
- Java
- Python
curl -i -X POST \
https://api.sbx.transmitsecurity.io/cis/v1/auth/webauthn/register \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"webauthn_encoded_result": "string"
}'{ "webauthn_session_id": "string", "user_id": "string", "webauthn_username": "string", "credential_id": "string", "authenticator_attachment": "platform", "aaguid": "string" }
Request
Complete WebAuthn credential registration for a new user (in Transmit) or a user that isn't currently logged in via Transmit. This API must be called from the backend using a client access token. If successful, the credentials will be registered for the user corresponding to the external user ID in the request. If no user is found, a new user will be created.
WebAuthn attestation data returned by the browser upon credential creation, which must be converted from array buffer to a base64 string. If webauthn-json create() was used, this is already taken care of.
A unique identifier in the tenant, which corresponds to an identifier of the user in your system.
- Sandbox environmenthttps://api.sbx.transmitsecurity.io/cis/v1/auth/webauthn/external/register
- Production environment (US)https://api.transmitsecurity.io/cis/v1/auth/webauthn/external/register
- Production environment (EU)https://api.eu.transmitsecurity.io/cis/v1/auth/webauthn/external/register
- Production environment (CA)https://api.ca.transmitsecurity.io/cis/v1/auth/webauthn/external/register
- Production environment (AU)https://api.au.transmitsecurity.io/cis/v1/auth/webauthn/external/register
- cURL
- Node.js
- Go
- JavaScript
- Java
- Python
curl -i -X POST \
https://api.sbx.transmitsecurity.io/cis/v1/auth/webauthn/external/register \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"webauthn_encoded_result": "string",
"external_user_id": "string",
"user_email": "string"
}'{ "webauthn_session_id": "string", "user_id": "string", "webauthn_username": "string", "credential_id": "string", "authenticator_attachment": "platform", "aaguid": "string", "external_user_id": "string", "is_user_created": true }