Auth operations
Run user authentication operations as part of a custom login flow.
Note that user authentication is a built-in, customizable Appfarm feature available in all solutions. You should only use the Auth operations action node if you need to create and manage a fully-custom login experience.
Properties
Operation
Select the auth operation to run. The options are:
Login With Google Use Google for login
Password Login Process a login using an email and password.
Request Login Link Send a login link to the email provided.
Request Onetime Pin Send a onetime pin to the email provided.
Onetime Pin Use Process a login using a onetime pin value.
Renew Access Token When custom login is used, you may use this option to renew the access token for the users with a third-party OpenID Connect provider. The Auth Operation for Renew Access Token will throw an error if no access token is registered on the user, or it the refresh token is not present.
Password Reset Link Send a password reset link to the email provided.
Validate TOTP Code Validate a code from the user's authenticator app as the second factor of a login.
Validate Backup Code Validate a single-use backup code as the second factor of a login.
The following properties are dependent on the operation chosen.
Redirect URL
Specify the URL the user should be redirected to, after successfully logging in.
Redirect to start
Select to redirect the user to the URL they initially navigated to, after successfully logging in.
If the Password Login operation is selected, specify the email address provided by the user.
Otherwise, specify the email address to send a login link, onetime pin or password reset link.
Password
Specify the password provided by the user for a Password Login operation.
One-time PIN
Specify the onetime pin (String) provided by the user for a Onetime Pin Use operation.
TOTP code
Specify the code (String) from the user's authenticator app for a Validate TOTP Code operation.
Backup code
Specify the backup code (String) for a Validate Backup Code operation.
Auth provider
For Renew Access Token, select the auth provider to renew the access token for. The provider must be configured to return a refresh_token, which usually means adding offline_access to the scopes in the auth provider settings.
Error message
If the auth operation fails an error message will be generated. Specify a property (String) to store the error message. Not available for Login With Google and Password Reset Link.
2FA required
Specify a property (Boolean) that is set to true when the login requires a second factor. Use it to branch the action to a TOTP or backup code input.
Available for Password Login and Onetime Pin Use. If you leave it empty, Appfarm shows its built-in two-factor dialog when a second factor is needed. Bind it, and Second factors, only when you build your own TOTP or backup code step. The bound data source must already hold an object (run Create object first), or the action node fails.
Second factors
Specify a property (multi enum) that receives the second-factor methods available to the user. Only filled when a second factor is required.
Last updated
Was this helpful?