https://github.com/curityio/send-email-action
Authentication action plugin which sends e-mail notifications to users.
https://github.com/curityio/send-email-action
authentication-action email plugin
Last synced: about 2 months ago
JSON representation
Authentication action plugin which sends e-mail notifications to users.
- Host: GitHub
- URL: https://github.com/curityio/send-email-action
- Owner: curityio
- License: apache-2.0
- Created: 2020-06-05T13:09:02.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-07T15:03:57.000Z (over 2 years ago)
- Last Synced: 2025-01-30T13:31:16.006Z (4 months ago)
- Topics: authentication-action, email, plugin
- Language: Groovy
- Homepage: https://curity.io/resources/learn/send-email-action/
- Size: 193 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
SendEmailAction Authentication Action Plugin
=============================================.. image:: https://img.shields.io/badge/quality-demo-red
:target: https://curity.io/resources/code-examples/status/
:alt: Quality.. image:: https://img.shields.io/badge/availability-source-blue
:target: https://curity.io/resources/code-examples/status/
:alt: AvailabilityA custom authentication action plugin for the Curity Identity Server. You can add the action to any authenticator to send
an e-mail to the user whenever the given authenticator is used in the login or SSO flow. The e-mail will contain the
username, time of login, the user-agent used to log in and, optionally, the IP address from which the login was initiated.Building the Plugin
~~~~~~~~~~~~~~~~~~~Build the plugin by issuing the command ``mvn package``. This will produce a JAR file in the ``target`` directory,
which can be installed.Installing the Plugin
~~~~~~~~~~~~~~~~~~~~~To install the plugin, copy the compiled JAR (and all of its dependencies) into the :file:`${IDSVR_HOME}/usr/share/plugins/${pluginGroup}`
on each node, including the admin node. For more information about installing plugins, refer to `curity.io/plugins`_.Required Dependencies
"""""""""""""""""""""You need at least version 7.3. of the Curity Identity Server to use this plugin.
For a list of the dependencies and their versions, run ``mvn dependency:list``. Ensure that all of these are installed in
the plugin group. Otherwise, they will not be accessible to this plug-in and run-time errors will result.Customizing the Plugin
~~~~~~~~~~~~~~~~~~~~~~If you want to customize the e-mail sent by the plugin you can change the messages and template files provided in this
repository.The messages are deployed to :file:`${IDSVR_HOME}/var/.plugins/messages/core/en/sendemailaction/` and the template to template is deployed to :file:`${IDSVR_HOME}/var/.plugins/templates/authentication-action/sendemailaction/email`. Both the messages and the template can be edited in these locations after the plugin is deployed.
Refer to `curity.io/templates`_ for more information on overriding templates.
Configuring the Plugin
~~~~~~~~~~~~~~~~~~~~~~There are a few options you can configure for the plugin:
.. image:: docs/configuration.png
:alt: Configuration in the admin UI- Account Manager: You can provide an account manager which will be used to retrieve the user's email address. If you omit
this option the plugin will assume that you use e-mails as usernames and will use the username as the recipients address.- Email Sender: You must provide a valid e-mail sender which will be responsible for sending the e-mails.
- Always send e-mail notification: If `on` then the plugin will always send an e-mail notification for the given authenticator.
If `off` then the plugin will look for a parameter `sendemailaction-should-send-email`, and send the e-mail only if its
value is `true` (you can set this parameter using other actions).- Do Not Send Ip Address in Email: When `on` will _not_ include the user's IP address in the notification e-mail. By default
the IP address is included in the e-mail.More Information
~~~~~~~~~~~~~~~~Please visit `curity.io`_ for more information about the Curity Identity Server.
.. _curity.io/plugins: https://developer.curity.io/docs/latest/developer-guide/plugins/index.html#plugin-installation
.. _curity.io: https://curity.io/
.. _curity.io/templates: https://developer.curity.io/docs/latest/developer-guide/front-end-development/overview.html#understanding-the-templating-system