Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Using Digest Auth Type

Baver
New Contributor
New Contributor

Hi guys,

I need to use Digest auth for an application. This proves to be really hard as I don't even know where to begin with.

It works via postman with the MD5 Algorithm but there is no auth type in the saviynt docs that seems to support this type of authentication.

Also, I am not sure but I think I need to send the digest everytime as there is no way to retrieve a token.

I am trying the below API calls that I will need to make in Saviynt:

https://www.mongodb.com/docs/cloud-manager/reference/api/organizations/organization-get-all/

 

Any help is appreciated, thank you.

5 REPLIES 5

rushikeshvartak
All-Star
All-Star

Are you using rest connector ?

# Generate authentication token
curl -X POST -H "Content-Type: application/json" -d '{"username": "your_username", "password": "your_password"}' http://your_restheart_server:port/tokens

# Response will include the token:
# {"token": "your_authentication_token"}

# Fetch documents from a collection
curl -H "Authorization: Bearer your_authentication_token" http://your_restheart_server:port/db_name/collection_name


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

@rushikeshvartak - Thank you for repliyng. Can you please provide a connection json and import JSON where you are using CURL in the command ? I know I can get what I need from a curl call but I am not able to run curl calls in the connections.

Sample 

{
"authentications": {
"RPAAUTH": {
"authType": "oauth2",
"url": "http://your_restheart_server:port/tokens",
"httpMethod": "POST",
"httpParams": "{\"username\": \"your_username\", \"password\": \"your_password\"}",
"httpContentType": "application/json",
"errorPath": "error.message",
"maxRefreshTryCount": 5,
"authError": [
"You are not authenticated!"
],
"retryFailureStatusCode": [
400,
401,
402
],
"tokenResponsePath": "authentications.RPAAUTH.accessToken",
"tokenType": "Bearer",
"authHeaderName": "Authorization"
}
}
}


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Baver
New Contributor
New Contributor

That is not working. That is using oauth2. I need to use digest auth which inially makes a Get with no authorization, then builds the authorization with the information received in the response JSON.

Digest auth type is not supported. Raise idea ticket

rushikeshvartak_0-1712122406612.png

 


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.