Skip to main content
Solved

Add Authorization to my endpoints

  • August 22, 2025
  • 2 replies
  • 46 views

Forum|alt.badge.img
  • Contributor
  • 17 replies

Hi,

I need to add authorization basic auth (username, password) to every endpoint in my rest api(Tripletex).

I have added dynamic values from the endpoint “TokenSessionCreate Create” creating a session token.

This token is my password and using a fixed username to every endpoint.

In my endpoint “LedgerPosting” am using the section “Override Headers” to add the token to the “Authorization” and the value equal “Basic user:pwd”. 

Well, I cant get this to work.

I proberly nedd to convert usr:pwd to base64 encoding….

Does anyone have any suggestion?

best regards,

Bjørn A.

 

 

 

 

Best answer by Thomas Lind

Hi ​@bjorn 

I would try to generate the base64 encoding elsewhere and apply it as a header to see if it is what is needed. Then I would try to figure out how to make it generate such a encoding afterwards.

2 replies

Thomas Lind
Community Manager
Forum|alt.badge.img+5
  • Community Manager
  • 1161 replies
  • Answer
  • August 22, 2025

Hi ​@bjorn 

I would try to generate the base64 encoding elsewhere and apply it as a header to see if it is what is needed. Then I would try to figure out how to make it generate such a encoding afterwards.


Christian Hauggaard
Community Manager
Forum|alt.badge.img+5

Hi ​@bjorn does Thomas’ comment above answer your question? If so please help us by marking it as the best answer. Please let us know if you have any follow up questions