I tried to use header-based user authentication, but it's not secure. I am wondering if there is another way to do user authentication in Domino , and if the user is authenticated, is there any method to generate JWT?
Any help would be greatly appreciated. Thanks!
Generating a JWT token is fairly straightforward, it's a JSON object, as outlined by Stephan Wissel here https://notessensei.com/blog/2016/02/now-we-are-token-authorization-using-json-web-token-in-domino.html. There are two challenges though both related to the requirement of doing it in LotusScript.
JWT still requires an initial authentication, typically via a POST. The token should also have an expiry date, which you'll want to check. You get bonus points for adding an "expire" function to invalidate a token.
I've never had a need in customer implementations to change from standard Domino authentication options.