Operations for the MultiFactorAuth API.
Summary
Functions
Challenge Factor
Enroll an authentication factor
Delete Factor
Enroll Factor
Get Factor
List authentication factors
Verify Challenge
Functions
@spec challenge_factor(WorkOS.Client.t(), String.t(), map(), keyword()) :: {:ok, WorkOS.AuthenticationChallenge.t()} | {:error, WorkOS.Error.error()}
Challenge Factor
Creates a Challenge for an Authentication Factor.
Parameters
id— The unique ID of the Authentication Factor to be challenged.params— request body mapopts— per-request options (seeWorkOS.Client.request/5)
@spec create_user_auth_factor(WorkOS.Client.t(), String.t(), map(), keyword()) :: {:ok, WorkOS.UserAuthenticationFactorEnrollResponse.t()} | {:error, WorkOS.Error.error()}
Enroll an authentication factor
Enrolls a user in a new authentication factor.
Parameters
userland_user_id— The ID of the user.params— request body mapopts— per-request options (seeWorkOS.Client.request/5)
@spec delete_factor(WorkOS.Client.t(), String.t(), keyword()) :: {:ok, term()} | {:error, WorkOS.Error.error()}
Delete Factor
Permanently deletes an Authentication Factor. It cannot be undone.
Parameters
id— The unique ID of the Factor.opts— per-request options (seeWorkOS.Client.request/5)
@spec enroll_factor(WorkOS.Client.t(), map(), keyword()) :: {:ok, WorkOS.AuthenticationFactorEnrolled.t()} | {:error, WorkOS.Error.error()}
Enroll Factor
Enrolls an Authentication Factor to be used as an additional factor of authentication. The returned ID should be used to create an authentication Challenge.
Parameters
params— request body mapopts— per-request options (seeWorkOS.Client.request/5)
@spec get_factor(WorkOS.Client.t(), String.t(), keyword()) :: {:ok, WorkOS.AuthenticationFactor.t()} | {:error, WorkOS.Error.error()}
Get Factor
Gets an Authentication Factor.
Parameters
id— The unique ID of the Factor.opts— per-request options (seeWorkOS.Client.request/5)
@spec list_user_auth_factors(WorkOS.Client.t(), String.t(), map(), keyword()) :: {:ok, WorkOS.Page.t(WorkOS.AuthenticationFactor.t())} | {:error, WorkOS.Error.error()}
List authentication factors
Lists the authentication factors for a user.
Parameters
userland_user_id— The ID of the user.params— query parameters::before,:after_,:limit,:orderopts— per-request options (seeWorkOS.Client.request/5)
@spec verify_challenge(WorkOS.Client.t(), String.t(), map(), keyword()) :: {:ok, WorkOS.AuthenticationChallengeVerifyResponse.t()} | {:error, WorkOS.Error.error()}
Verify Challenge
Verifies an Authentication Challenge.
Parameters
id— The unique ID of the Authentication Challenge.params— request body mapopts— per-request options (seeWorkOS.Client.request/5)