Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
      • General Inquiries
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

HTTP Communication – Digest authentication

Solved619 views5th November 2024authentication Digest HTTP
4
Sulejman Karamehic [SLC] [DevOps Enabler]94 4th November 2024 0 Comments

Hello Community,

I have a question regarding HTTP communication using the digest authentication in protocols.

From what I read on the docs the approach should be using the “loginMethod=”credentials” attribute with provided “userName” and “password” attributes. This is how my session is currently built (dummy data example):

<Session id=”1″ loginMethod=”credentials” userName=”10″ password=”11″ name=”GetData”>
<Connection id=”1″ name=”Data”>
<Request verb=”GET” url=”dummy/url”>
</Request>
<Response statusCode=”20″>
<Content pid=”21″></Content>
</Response>
</Connection>
</Session>

But I am getting back from the device 401 Unauthorized response, form the documentation available I couldn’t find any other information if something in the headers needs to be included to get it working. Did anyone had any experience implementing this authentication previously?

The device is using “SHA-256” algorithm, and in postman data is being returned as it should be by setting the authentication method to digest, setting the username, password and the algorithm.

Thank you in advance.

Sulejman Karamehic [SLC] [DevOps Enabler] Selected answer as best 5th November 2024

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
5
Jeroen Neyt [SLC] [DevOps Advocate]2.31K Posted 4th November 2024 1 Comment

The session that you configured should be sufficient to get Digest authentication working in a DataMiner connector.

However, WinHTTP (the engine that DataMiner HTTP connectors are using behind the screen) only has support for Digest authentication using the MD5 algorithm which is how it was described in the original standard.

SHA-256 and SHA-512 have been added later to the standard but WinHTTP has never been updated to support this newer standard.

If it is impossible to use MD5 as the algorithm for compliance or security reasons, I advise you to execute the HTTP requests in a QAction through .NET’s HttpClient.

Sulejman Karamehic [SLC] [DevOps Enabler] Selected answer as best 5th November 2024
Sulejman Karamehic [SLC] [DevOps Enabler] commented 5th November 2024

Hi Jeroen, this is the information I was looking for, thank you.

Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs