Authenticate API using LDAP token

Hi, I want to develop a user interface and get data via API from Portainer. It seems to be the only way to get it working using username and password in clear text to get an JWT. Even though I use server side code I`m dissatisfied with this option to authenticate to API. It there another way like using an LDAP token or somehting like that? If not, is there the possibility to not use password in clear text? What is your security advise?

Best Regards, Michel