Best answer

Add helpText to Password field on Basic Auth

  • 11 July 2020
  • 4 replies
  • 267 views

Userlevel 1

Hi, I’m creating a custom app and I need to put a help text into de password field on the basic auth form.

How can I achieve it?

 

Thanks

icon

Best answer by ikbelkirasan 11 July 2020, 21:28

View original

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

4 replies

Userlevel 7
Badge +12

@anfuca I think it’s not possible to edit the authentication fields when using Basic auth. So, I’d suggest you use API Key auth instead. You will then be able to add the username and password fields and customize their helpText value.

That said, you’ll still have to include authentication header by yourself. The Basic authorization header can be calculated as follows:

return z.request({
//...
headers: {
Authorization:
"Basic " +
Buffer.from(
`${bundle.authData.username}:${bundle.authData.password}`
).toString("base64"),
},
});

 

Userlevel 1

Hi @ikbelkirasan 

Just changed to API Key as you suggest, and everything works perfect. 

Thanks for your help!

Userlevel 7
Badge +12

@anfuca - Are you building with the CLI or the Visual Builder?

Userlevel 1

@ikbelkirasan with the Visual Builder