Anonymous User Enhanced
Overview
This module provides a method to login via a magic link. For this it uses the Administration and email connector modules. But if you want you may adjust this to your own liking.
A user provides their username or email and receives an email with a link to actually login. Removing the need for a password.
The URL is only active for a set duration (by default 15 minutes), and the UUID + Key with validating data in it are both encrypted.
As cherry on top the module comes with functionality to deactivate users once the logoff and activate them while they login, in case you want to limit the active users.
Documentation
Typical usage scenario
Allow your users to login without needing to remember their application password, as they will get a link in their inbox to complete login.
Features and limitations
Is tied to the Administration and Email connector modules
Also allows for limiting the maximum amount of active users if you have a limited user license such as for basic license apps.
Dependencies
- Administration module
- Email Connector module (which requires the Mx Model Reflection and Encryption modules)
- Community Commons
- Encryption Module
- Mx 10 version requires Java 21
Installation
- Import this module
- Import dependencies
- Synchronize the modules in the Mx Model Reflection management page
- AnonymousUserEnhanced,
- Administration,
- System
- Configure an email account
- Configure a template that uses the EmailHelper, it should at the very least contain the URL as a link and a code for the code confirmation
- Set the configured email account and template in the settings page (which you may add in the form of the SNP_AnonymousUserEnhanced_Management snippet)
- Configure the signin page to use the SNP_LoginForm, and also make sure that the page is accessible to anonymous users
- Map the module roles to their respective users
- Implement the signout flow by copying the ACT_Account_Deactivate and ACT_Signout to your module
- Enable the two scheduled events shipped with the module ScE_Account_DeactivateInactive & ScE_AnonSession_CleanupExpired
- Enjoy your magic link login!