Table of Contents

Interface IGuardianClient

Namespace
Auth0.ManagementApi.Clients
Assembly
Auth0.ManagementApi.dll
public interface IGuardianClient

Methods

CreateEnrollmentTicketAsync(CreateGuardianEnrollmentTicketRequest, CancellationToken)

Generate an email with a link to start the Guardian enrollment process.

Task<CreateGuardianEnrollmentTicketResponse> CreateEnrollmentTicketAsync(CreateGuardianEnrollmentTicketRequest request, CancellationToken cancellationToken = default)

Parameters

request CreateGuardianEnrollmentTicketRequest

The CreateGuardianEnrollmentTicketRequest containing the information about the user who should be enrolled.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<CreateGuardianEnrollmentTicketResponse>

A CreateGuardianEnrollmentTicketResponse with the details of the ticket that was created.

DeleteEnrollmentAsync(string, CancellationToken)

Deletes an enrollment.

Task DeleteEnrollmentAsync(string id, CancellationToken cancellationToken = default)

Parameters

id string

The ID of the enrollment to delete.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task

A Task that represents the asynchronous delete operation.

GetEnrollmentAsync(string, CancellationToken)

Retrieves an enrollment.

Task<GuardianEnrollment> GetEnrollmentAsync(string id, CancellationToken cancellationToken = default)

Parameters

id string

The ID of the enrollment to retrieve.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<GuardianEnrollment>

A GuardianEnrollment containing details of the enrollment.

GetFactorsAsync(CancellationToken)

Retrieves all factors. Useful to check factor enablement and trial status.

Task<IList<GuardianFactor>> GetFactorsAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

Task<IList<GuardianFactor>>

List of GuardianFactor instances with the available factors.

GetPhoneMessageTypesAsync(CancellationToken)

Retrieve the enabled phone factors for multi-factor authentication

Task<GuardianPhoneMessageTypes> GetPhoneMessageTypesAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<GuardianPhoneMessageTypes>

A GuardianPhoneMessageTypes containing the message types.

GetSmsTemplatesAsync(CancellationToken)

Retrieves enrollment and verification templates. You can use it to check the current values for your templates.

Task<GuardianSmsEnrollmentTemplates> GetSmsTemplatesAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

Task<GuardianSmsEnrollmentTemplates>

A GuardianSmsEnrollmentTemplates containing the templates.

GetSnsConfigurationAsync(CancellationToken)

Returns provider configuration for AWS SNS.

Task<GuardianSnsConfiguration> GetSnsConfigurationAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

Task<GuardianSnsConfiguration>

A GuardianSnsConfiguration containing Amazon SNS configuration.

GetTwilioConfigurationAsync(CancellationToken)

Returns configuration for the Guardian Twilio provider.

Task<GuardianTwilioConfiguration> GetTwilioConfigurationAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

Task<GuardianTwilioConfiguration>

GuardianTwilioConfiguration with the Twilio configuration.

UpdateFactorAsync(UpdateGuardianFactorRequest, CancellationToken)

Enable or Disable a Guardian factor.

Task<UpdateGuardianFactorResponse> UpdateFactorAsync(UpdateGuardianFactorRequest request, CancellationToken cancellationToken = default)

Parameters

request UpdateGuardianFactorRequest

The UpdateGuardianFactorRequest containing the details of the factor to update.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<UpdateGuardianFactorResponse>

The UpdateGuardianFactorResponse indicating the status of the factor.

UpdatePhoneMessageTypesAsync(GuardianPhoneMessageTypes, CancellationToken)

Update enabled phone factors for multi-factor authentication

Task<GuardianPhoneMessageTypes> UpdatePhoneMessageTypesAsync(GuardianPhoneMessageTypes messageTypes, CancellationToken cancellationToken = default)

Parameters

messageTypes GuardianPhoneMessageTypes

A GuardianPhoneMessageTypes containing the list of phone factors to enable on the tenan.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<GuardianPhoneMessageTypes>

A GuardianPhoneMessageTypes containing the message types.

UpdateSmsTemplatesAsync(GuardianSmsEnrollmentTemplates, CancellationToken)

Updates enrollment and verification templates. Useful to send custom messages on SMS enrollment and verification.

Task<GuardianSmsEnrollmentTemplates> UpdateSmsTemplatesAsync(GuardianSmsEnrollmentTemplates templates, CancellationToken cancellationToken = default)

Parameters

templates GuardianSmsEnrollmentTemplates

A GuardianSmsEnrollmentTemplates containing the updated templates.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<GuardianSmsEnrollmentTemplates>

A GuardianSmsEnrollmentTemplates containing the templates.

UpdateTwilioConfigurationAsync(UpdateGuardianTwilioConfigurationRequest, CancellationToken)

Configure the Guardian Twilio provider.

Task<GuardianTwilioConfiguration> UpdateTwilioConfigurationAsync(UpdateGuardianTwilioConfigurationRequest request, CancellationToken cancellationToken = default)

Parameters

request UpdateGuardianTwilioConfigurationRequest

The UpdateGuardianTwilioConfigurationRequest containing the configuration settings.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<GuardianTwilioConfiguration>

The GuardianTwilioConfiguration containing the updated configuration settings.