lotus-noteslotus-domino

Domino Basic authentication fails when username contains special characters


I have angular application which receives data from domino. In the angular code, i access domino url via basic authentication.

URL: apidata.nsf/doLoginSuccessAuth?OpenPage
UserName:Vijay Superuser2ö

Authorization: Basic VmlqYXkgU3VwZXJ1c2VyMsO2OkluaXRQYXNzMjAyMw==

enter image description here

When the username contains the special characters, the authentication is not working. I can login with the same username and password successfully via browser. If i remove the special character, basic authentication works just fine.

I have checked below article and the configuration is done as mentioned in the article. https://support.hcltechsw.com/csm?id=kb_article&sysparm_article=KB0082364. I am using Domino 12.0.1.

Do we need to enable any character encoding setting to make this work?


Solution

  • You need to encode your Base64 string using ISO-8859-1 (instead of UTF-8).

    So for password "initPass2023" your Base64 string should be "VmlqYXkgU3VwZXJ1c2VyMvY6aW5pdFBhc3MyMDIz" instead of "VmlqYXkgU3VwZXJ1c2VyMsO2OmluaXRQYXNzMjAyMw==".