Forum Academy Marketplace Showcase Pricing Features

API Digest Authentication - What is this?

Hi Community,

can bubble set a digest authentication when making a api call?

i try to make a API Call with the bubble connector to the Xentral API .
The xentral docu: Xentral-API API documentation
says it must be a digest authentication. I tried every possible authentication method, but nothing worked.

Can someone help ?

Hi @benjamin.doerries

" How does Digest Authentication work?

Digest authentication is another authentication type specified in HTTP 1.1. Unlike basic authentication, digest authentication does not require the password to be transmitted. Rather, the client takes the username and password and uses the MD5 hashing algorithm to create a hash, which is then sent to the SQL Server. "

You can use some MD5 plugin converter to create a hash.

More : Digest definition

Xentral:


Replace XXXXXXXXX with MD5 hash (including user password).

some Bubble plugins:

example:

1 Like

Hi Mark,

thank you very much for your reply. This is a very good approach to move forward.
I will try that and give you feedback. :blush:

1 Like

Hi,

i have now a little better understanding how digest auth works.
I found a nice tutorial about that here: Postman Tutorial - Authorize API Requests with Digest Auth - YouTube
He explained that the server will repond a error first with the following parameter: the “realm”, and “nonce” which i need for further processing. :partying_face: :partying_face: :partying_face:

On postman i tested the following call: https://6163dc326e249.xentral.biz/api/v1/
and the server responded exactly how it should, as shown in the pictures:

With the error body:

and the Header body with the parameter i need in the next step:

How can i handle this respond now in bubble?
I have to store “realm” and “nonce” somehow in the bubble workflows to create the MD5 hash in three workflow steps:

Thanks you in advance :slight_smile:

1 Like