IBM Security Verify

Expand all | Collapse all

Sending Email Directly from InfoMap?

  • 1.  Sending Email Directly from InfoMap?

    Posted 10 days ago

    All,

    I was wondering if it is possible to send an email directly from an infomap?  We make HTTP calls directly from infomaps where we post event logs to a webservice using the httpclient object.  Phil Nye had examples of how to do this in the infomap.  However, I was searching the API and I don't see an equivalent object such as an smtpclient that makes a call to exchange server.  My MS Exchange guy said that there is an EWS (Exchange Web Service) that I could use but not familiar with that.  Wondering if this is possible?

    The solution I am trying to solve... There is a new requirement that states if a user gets soft locked (30 minute lock) after 5 incorrect login attempts, an email must be sent to the individual that there ID is locked.  Same thing with a hard lock (permanent lock) after the following 5 incorrect attempts.  I sorta got this working through an authorization policy/mechanism, but it causes new problems using this workflow.  So sending the email directly in the infomap would be optimal.

    Version:  ISAM 9.0.7.1

    ------------------------------
    Troy Burkle
    ------------------------------


  • 2.  RE: Sending Email Directly from InfoMap?

    Posted 10 days ago
    Hi Troy,

    There is no SMTP client helper class in the JavaScript InfoMap context.  If you need to send email from within the logic of the JavaScript then you would have to find a REST service you can use to send e-mail and call this using the HTTPClient helper.  That's what your Exchange guy is offering.

    There is an E-mail mechanism within the Authentication Service which can be hooked into an authentication policy - that's how we send emails as part of forgotten username or account registration flows for example.  I wonder if you could create a separate authentication policy using that e-mail mechanism and use that as a pseudo e-mail-sending service.... you could then invoke that policy (via HTTPClient helper) from your InfoMap. ??

    Jon.

    ------------------------------
    Jon Harry
    Consulting IT Security Specialist
    IBM
    ------------------------------



  • 3.  RE: Sending Email Directly from InfoMap?

    Posted 10 days ago
    Hi Jon,

    I came up with that exact idea this morning after a couple cups of coffee.  I am working on that solution now.

    Troy

    ------------------------------
    Troy Burkle
    ------------------------------



  • 4.  RE: Sending Email Directly from InfoMap?

    Posted 9 days ago
    That's also the solution I recommend. We use it to send confirmation mails from OAuth mapping rules.

    ------------------------------
    Laurent LA Asselborn
    ------------------------------



  • 5.  RE: Sending Email Directly from InfoMap?

    Posted 9 days ago
    Email service can be defined in "Server Connections".
    These server connection, as I understand are used by the policy server, and its services can be made accessible through the localhost:443.
    Isn't there a service here that can be used to send email? In this case i could in fact send messages using a sps/??? request!

    ------------------------------
    Joao Goncalves
    Pyxis, Lda.
    Sintra
    +351 91 721 4994
    ------------------------------



  • 6.  RE: Sending Email Directly from InfoMap?

    Posted 6 days ago
    Hi Troy,

    As the team has already suggested the possible solutions using ISAM version 9.0.7, I just wanted to add that if you have an option to upgrade to v10 or have the upgrade in roadmap, then you could consider using the 'Email' and 'EmailSender' classes which are available in v10. These can be utilized to send an email from within an InfoMap directly as per your requirement. I have done it successfully on v10.0.1 using the following classes

    You can easily find the details of using these classes in Verify Access v10 Javadoc and you would be able to send an email with 3 or 4 lines of code (excluding import statements) :p

    Hope this helps.

    Best regards,
    Jahanzaib ​

    ------------------------------
    Jahanzaib Sarwar
    ------------------------------



  • 7.  RE: Sending Email Directly from InfoMap?

    Posted 6 days ago
    Thanks for that info Jahanzaib.  We will be upgrading to v10 later this year.  But I was successfully able to create a new Authentication Mechanism/Policy workflow and invoked via httpclient.  

    Troy


    ------------------------------
    Troy Burkle
    ------------------------------