On Tue, Apr 21, 2020 at 9:05 PM ivanmarcus <[email protected]>
wrote:

> Chris,
>
> I'm not aware of any current extension, or facility within Guacamole to do
> this - although someone may come up and point something out!
>

There is indeed no extension provided for doing this, but if interested in
the way to achieve it with an extension, you would implement an
AuthenticationProvider and provide an implementation of getUserContext()
which sends the email (or, more likely, queues an email to be sent). The
getUserContext() function is invoked after a user has successfully
authenticated:

http://guacamole.apache.org/doc/guacamole-ext/org/apache/guacamole/net/auth/AuthenticationProvider.html#getUserContext-org.apache.guacamole.net.auth.AuthenticatedUser-

Extending AbstractAuthenticationProvider would be the easiest way to do
this.

http://guacamole.apache.org/doc/guacamole-ext/org/apache/guacamole/net/auth/AbstractAuthenticationProvider.html

See the manual for how extension .jar files are structured and how
Guacamole would be pointed at the relevant AuthenticationProvider class
(via your extension's guac-manifest.json):

http://guacamole.apache.org/doc/gug/guacamole-ext.html#ext-file-format

- Mike

Reply via email to