authenticationmethods

package
v2.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	WithRawResponse *RawClient
	// contains filtered or unexported fields
}

func NewClient

func NewClient(options *core.RequestOptions) *Client

func (*Client) Create

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

func (*Client) Delete

func (c *Client) Delete(
	ctx context.Context,

	id string,

	authenticationMethodID string,
	opts ...option.RequestOption,
) error

Remove the authentication method with the given ID from the specified user. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>.

func (*Client) DeleteAll

func (c *Client) DeleteAll(
	ctx context.Context,

	id string,
	opts ...option.RequestOption,
) error

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

func (*Client) Get

func (c *Client) Get(
	ctx context.Context,

	id string,

	authenticationMethodID string,
	opts ...option.RequestOption,
) (*management.GetUserAuthenticationMethodResponseContent, error)

func (*Client) List

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

func (*Client) Set

Replace the specified user <a href="https://auth0.com/docs/secure/multi-factor-authentication/multi-factor-authentication-factors"> authentication methods</a> with supplied values.

<b>Note</b>: Authentication methods supplied through this action do not iterate on existing methods. Instead, any methods passed will overwrite the user&#8217s existing settings.

func (*Client) Update

Modify the authentication method with the given ID from the specified user. For more information, review <a href="https://auth0.com/docs/secure/multi-factor-authentication/manage-mfa-auth0-apis/manage-authentication-methods-with-management-api">Manage Authentication Methods with Management API</a>.

type RawClient

type RawClient struct {
	// contains filtered or unexported fields
}

func NewRawClient

func NewRawClient(options *core.RequestOptions) *RawClient

func (*RawClient) Delete

func (r *RawClient) Delete(
	ctx context.Context,

	id string,

	authenticationMethodID string,
	opts ...option.RequestOption,
) (*core.Response[any], error)

func (*RawClient) DeleteAll

func (r *RawClient) DeleteAll(
	ctx context.Context,

	id string,
	opts ...option.RequestOption,
) (*core.Response[any], error)

func (*RawClient) Get

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL