Table of Contents

Interface IAuthenticationMethodsClient

Namespace
Auth0.ManagementApi.Users
Assembly
Auth0.ManagementApi.dll
public interface IAuthenticationMethodsClient
Extension Methods

Methods

CreateAsync(string, CreateUserAuthenticationMethodRequestContent, RequestOptions?, CancellationToken)

Create an authentication method. Authentication methods created via this endpoint will be auto confirmed and should already have verification completed.

WithRawResponseTask<CreateUserAuthenticationMethodResponseContent> CreateAsync(string id, CreateUserAuthenticationMethodRequestContent request, RequestOptions? options = null, CancellationToken cancellationToken = default)

Parameters

id string
request CreateUserAuthenticationMethodRequestContent
options RequestOptions
cancellationToken CancellationToken

Returns

WithRawResponseTask<CreateUserAuthenticationMethodResponseContent>

DeleteAllAsync(string, RequestOptions?, CancellationToken)

Remove all authentication methods (i.e., enrolled MFA factors) from the specified user account. This action cannot be undone.

Task DeleteAllAsync(string id, RequestOptions? options = null, CancellationToken cancellationToken = default)

Parameters

id string
options RequestOptions
cancellationToken CancellationToken

Returns

Task

DeleteAsync(string, string, RequestOptions?, CancellationToken)

Remove the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API.

Task DeleteAsync(string id, string authenticationMethodId, RequestOptions? options = null, CancellationToken cancellationToken = default)

Parameters

id string
authenticationMethodId string
options RequestOptions
cancellationToken CancellationToken

Returns

Task

GetAsync(string, string, RequestOptions?, CancellationToken)

WithRawResponseTask<GetUserAuthenticationMethodResponseContent> GetAsync(string id, string authenticationMethodId, RequestOptions? options = null, CancellationToken cancellationToken = default)

Parameters

id string
authenticationMethodId string
options RequestOptions
cancellationToken CancellationToken

Returns

WithRawResponseTask<GetUserAuthenticationMethodResponseContent>

ListAsync(string, ListUserAuthenticationMethodsRequestParameters, RequestOptions?, CancellationToken)

Retrieve detailed list of authentication methods associated with a specified user.

Task<Pager<UserAuthenticationMethod>> ListAsync(string id, ListUserAuthenticationMethodsRequestParameters request, RequestOptions? options = null, CancellationToken cancellationToken = default)

Parameters

id string
request ListUserAuthenticationMethodsRequestParameters
options RequestOptions
cancellationToken CancellationToken

Returns

Task<Pager<UserAuthenticationMethod>>

SetAsync(string, IEnumerable<SetUserAuthenticationMethods>, RequestOptions?, CancellationToken)

WithRawResponseTask<IEnumerable<SetUserAuthenticationMethodResponseContent>> SetAsync(string id, IEnumerable<SetUserAuthenticationMethods> request, RequestOptions? options = null, CancellationToken cancellationToken = default)

Parameters

id string
request IEnumerable<SetUserAuthenticationMethods>
options RequestOptions
cancellationToken CancellationToken

Returns

WithRawResponseTask<IEnumerable<SetUserAuthenticationMethodResponseContent>>

UpdateAsync(string, string, UpdateUserAuthenticationMethodRequestContent, RequestOptions?, CancellationToken)

Modify the authentication method with the given ID from the specified user. For more information, review Manage Authentication Methods with Management API.

WithRawResponseTask<UpdateUserAuthenticationMethodResponseContent> UpdateAsync(string id, string authenticationMethodId, UpdateUserAuthenticationMethodRequestContent request, RequestOptions? options = null, CancellationToken cancellationToken = default)

Parameters

id string
authenticationMethodId string
request UpdateUserAuthenticationMethodRequestContent
options RequestOptions
cancellationToken CancellationToken

Returns

WithRawResponseTask<UpdateUserAuthenticationMethodResponseContent>