Search code examples
lotus-noteslotuslotusscriptlotus-formula

Auto authentication through email link


I have written an agent which takes the username and authenticate user, if authentication is successful then it redirects to the actual URL of the database.

For taking name of the user, I am using @Formulas. Hence, I can use my method of authentication in any link or hotspot or button in Notes Client. But, I face problem to send this method through reminder email links.

When I create a URL through backend agent, this URL/hotspot should have my code with @formula. In simple words, I want to pass @Dblookup inside URL/hotspot through my email link. How to accomplish this task ?

Or is there any alternative to get user name if any person clicks a link in his email ?

Only Notes client has to be used.


Edit#1: Adding scenario for better explanation:

Our users are not happy to re-authenticate themselves for web applications. So, we have been trying something like if they want to open a webdoclink, which they got through their email in notes client, so they shouldn't be asked to authenticate again (since they have already logged into notes client).

We could achieve this for static application links, where application name is not changed. Now, the challenge we are facing is how to do it for reminder emails, which have links to particular web document (links here are not static. They are differed by unique document ids). For this to work, we need shortname of person who clicked that link from his email.


Solution

  • You probably need to be sending an Action hotspot instead of a URL hotspot; but it is very difficult to guess without seeing what your code is really doing. Also, I believe that creating an Action hotspot probably will require copying it from a previously saved rich text field, perhaps in a profile document and appending it to the rich text body field of the message you are sending. (That's a technique I've used in the past to create action hotspots, anyhow. I'm not sure if there are better alternatives.)

    And since this is for Notes client recipients, the other technique that I would probably explore is the use of a store-form-in-document message instead of an ordinary email message. That way you just need to have a button containing the @DbLookup on the form that you send in the message.