AuthenticationStrategy
Reference
Parameters
credentials
list
The fields required to log in at your application.
Component data2-core-types@FieldReference
verifier
The DataSet used for authentication. This Authentication strategy will gain control over this DataSet and will automatically filter it to only show the authenticated user.
Component data2-core-types@DataSetReference
session
list
The fields that will be present in the user session when logged-in. If left empty the session will have all fields. The fields here are used to match with a user session, meaning that if a change happens to some of the data in the table, the session will be invalidaded. It is advised to only pick fields that should be used to identify the user.
Component data2-core-types@FieldReference
role
The role field for the "Verifier" DataSet.
Component data2-core-types@DataSetColumnReference
roleDefault
Default value for the "Role" field.
Component data2-core-primitives@String
password
The password field for your "Verifier" DataSet. Your Authentication Strategy required confirmation of its data when registering a user.
Component data2-core-types@DataSetColumnReference
email
The email field for your "Verifier" DataSet. Setting a field as an email will make it case insensitive for this Authentication Strategy.
Component data2-core-types@DataSetColumnReference
resetPassword
Settings for the password reset emails of this Authentication Strategy.
Component data2-core-primitives@Object
resetEmail
: data2-core-primitives@Objectartboard
: data2-core-types@ArtboardReferencesubject
: data2-core-primitives@StringreplyTo
: data2-core-primitives@Stringfrom
: data2-core-primitives@ObjectresetSuccessEmail
: data2-core-primitives@Objectartboard
: data2-core-types@ArtboardReferencesubject
: data2-core-primitives@StringreplyTo
: data2-core-primitives@Stringfrom
: data2-core-primitives@Object
The settings for the email sent for a user in order to reset its password..
The artboard used for this email. You may access the reset link with a Reference of "link" (without quotes)
Email's subject
If the user wants to reply the email, for whose email the reply will be sent to.
The name of the sender.
The settings for the email sent for a user when they successfully has reset their password.
The artboard used for this email. You may access the reset link with a Reference of "link" (without quotes)
Email's subject
If the user wants to reply the email, for whose email the reply will be sent to.
The name of the sender.
sessionExpiresIn
Session expiration time. A session older than this value will be invalidated.
Component data2-core-primitives@Number
sessionRenewal
Allows for renewing the user session.
Component data2-core-primitives@Boolean
identityProviders
list
Connects an Identity Provider to your Authentication Strategy, adding another way to log in at your app.
Component data2-core-id@ProviderAuthenticationSettings
shouldLoginAfterRegister
If true, logs user in automatically after register. Default: true
Component data2-core-primitives@Boolean
Interactions
login
logout
register
changePassword
sendResetPasswordEmail
resetPassword
loginIdentityProvider
Arguments
-
Identity Provider data2-core-types@IdentityProviderReference