Skip to main content

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

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

  1. Identity Provider data2-core-types@IdentityProviderReference

  2. Token data2-core-primitives@String