I'd like to know how to authenticate users in Lotus Domino 8.5.3 through Domino Data Service REST API.
I can see in the documentation the "Request header value for authorization", and it says:
Other headers may be required for authorization depending on the security imposed by the Domino server.
I haven't found information about the "other headers". Anybody knows how to authenticate? Should we create a cookie and send it in every request header?
In the section "Specifying request headers" of the "Domino Data Service User Guide and Reference" they mention the http header "Authorization":
Authorization username:password (must be encoded)
It says "must be encoded" but don't mention what kind of enconding. It's Base64 encoding and you can use in javascript atob() and btoa() functions to encode and decode.
If you user is "john" and you password is "p455w0rd", you must encode the string "john:p455w0rd" (include the colon, and you can do that with: btoa("john:p455w0rd") ) and add "Basic" as a prefix if your authentication is basic:
Authorization:Basic am9objpwNDU1dzByZA==
That's it.