Skip to main content

enrollments

Creates, updates, deletes, gets or lists an enrollments resource.

Overview​

Nameenrollments
TypeResource
Idokta.webauthn_registration.enrollments

Fields​

The following fields are returned by SELECT queries:

User factor variant used for WebAuthn preregistration factors

NameDatatypeDescription
idstringID of the factor
_linksobjectSpecifies link relations (see Web Linking) available using the JSON Hypertext Application Language specification. This object is used for dynamic discovery of related resources and lifecycle operations.
createdstring (date-time)Timestamp indicating when the factor was enrolled
factorTypestringType of factor (call, email, push, question, signed_nonce, sms, token, token:hardware, token:hotp, token:software:totp, u2f, web, webauthn)
lastUpdatedstring (date-time)Timestamp indicating when the factor was last updated
profilestringSpecific attributes related to the factor (opaque JSON object)
providerstring (CUSTOM, DUO, FIDO, GOOGLE, OKTA, RSA, SYMANTEC, YUBICO)
statusstringStatus of the factor (ACTIVE, DISABLED, ENROLLED, EXPIRED, INACTIVE, NOT_SETUP, PENDING_ACTIVATION) (example: ACTIVE)
vendorNamestringName of the factor vendor. This is usually the same as the provider. (example: OKTA)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_web_authn_preregistration_factorsselectuserId, subdomainLists all WebAuthn preregistration factors for the specified user
delete_web_authn_preregistration_factordeleteuserId, authenticatorEnrollmentId, subdomainDeletes a specific WebAuthn preregistration factor for a user
activate_preregistration_enrollmentexecsubdomainActivates a preregistered WebAuthn factor. As part of this operation, Okta first decrypts and verifies the factor PIN and enrollment data sent by the fulfillment provider.
enroll_preregistration_enrollmentexecsubdomainEnrolls a preregistered WebAuthn factor. This WebAuthn factor has a longer challenge timeout period to accommodate the fulfillment request process. As part of this operation, Okta generates elliptic curve (EC) key-pairs used to encrypt the factor PIN and enrollment data sent by the fulfillment provider.
generate_fulfillment_requestexecsubdomainGenerates a fulfillment request by sending a WebAuthn preregistration event to start the flow. The WebAuthn preregistration integration for Okta Workflows uses a preregistration event to populate the fulfillment request.
send_pinexecsubdomainSends the decoded PIN for the specified WebAuthn preregistration enrollment. PINs are sent to the user's email. To resend the PIN, call this operation again.
assign_fulfillment_error_web_authn_preregistration_factorexecuserId, authenticatorEnrollmentId, subdomainAssigns the fulfillment error status to a WebAuthn preregistration factor for a user. The /mark-error path indicates that the specific FULFILLMENT_ERRORED AuthFactor status is set on the enrollment.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
authenticatorEnrollmentIdstringID for a WebAuthn preregistration factor in Okta
subdomainstring(default: my-org)
userIdstringID of an existing Okta user

SELECT examples​

Lists all WebAuthn preregistration factors for the specified user

SELECT
id,
_links,
created,
factorType,
lastUpdated,
profile,
provider,
status,
vendorName
FROM okta.webauthn_registration.enrollments
WHERE userId = '{{ userId }}' -- required
AND subdomain = '{{ subdomain }}' -- required
;

DELETE examples​

Deletes a specific WebAuthn preregistration factor for a user

DELETE FROM okta.webauthn_registration.enrollments
WHERE userId = '{{ userId }}' --required
AND authenticatorEnrollmentId = '{{ authenticatorEnrollmentId }}' --required
AND subdomain = '{{ subdomain }}' --required
;

Lifecycle Methods​

Activates a preregistered WebAuthn factor. As part of this operation, Okta first decrypts and verifies the factor PIN and enrollment data sent by the fulfillment provider.

EXEC okta.webauthn_registration.enrollments.activate_preregistration_enrollment
@subdomain='{{ subdomain }}' --required
@@json=
'{
"credResponses": "{{ credResponses }}",
"fulfillmentProvider": "{{ fulfillmentProvider }}",
"pinResponseJwe": "{{ pinResponseJwe }}",
"serial": "{{ serial }}",
"userId": "{{ userId }}",
"version": "{{ version }}",
"yubicoSigningJwks": "{{ yubicoSigningJwks }}"
}'
;