two_factor_authentication
Creates, updates, deletes, gets or lists a two_factor_authentication resource.
Overview
| Name | two_factor_authentication |
| Type | Resource |
| Id | linode.profile.two_factor_authentication |
Fields
The following fields are returned by SELECT queries:
SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
disable | exec | Disables two-factor authentication (2FA) for your user. Once successful, login attempts from untrusted computers will only require a password. Keep 2FA enabled to protect your account. Learn more... Learn more... | ||
enable | exec | Generates a secret key for your user. To enable two-factor authentication (2FA), enter this secret into your third-party authenticator application. To complete the 2FA setup, use the Enable two-factor authentication operation to enter a one-time passcode (OTP) from your authenticator app. Once enabled, logins from untrusted computers are required to provide an OTP before they are successful. Run the Answer security questions operation. Learn more... Learn more... | ||
confirm | exec | Confirms that you can successfully generate one-time codes. Once confirmed, 2FA is enabled on your account. Login attempts from untrusted computers will be required to provide a one-time code before they are successful. Learn more... Learn more... |
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.
| Name | Datatype | Description |
|---|
Lifecycle Methods
- disable
- enable
- confirm
Disables two-factor authentication (2FA) for your user. Once successful, login attempts from untrusted computers will only require a password. Keep 2FA enabled to protect your account.
Learn more...
Learn more...
EXEC linode.profile.two_factor_authentication.disable
;
Generates a secret key for your user. To enable two-factor authentication (2FA), enter this secret into your third-party authenticator application. To complete the 2FA setup, use the Enable two-factor authentication operation to enter a one-time passcode (OTP) from your authenticator app. Once enabled, logins from untrusted computers are required to provide an OTP before they are successful.
Run the Answer security questions operation.
Learn more...
Learn more...
EXEC linode.profile.two_factor_authentication.enable
;
Confirms that you can successfully generate one-time codes. Once confirmed, 2FA is enabled on your account. Login attempts from untrusted computers will be required to provide a one-time code before they are successful.
Learn more...
Learn more...
EXEC linode.profile.two_factor_authentication.confirm
@@json=
'{
"tfa_code": "{{ tfa_code }}"
}'
;