Skip to main content

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

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


@ikbelkirasan with the Visual Builder


@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"),
},
});

 


Hi @ikbelkirasan 

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

Thanks for your help!