Is it possible to use function encrypt HmacSHA256 on Azure Data Factory ?

Nanchai Ko 5 Reputation points
2024-09-24T04:26:37.8933333+00:00

Hi All,

I have ADF Pipeline to call some API and that API required signature (encrypt HmacSHA256) for authenticate in body.

Is it possible to use function encrypt HmacSHA256 on Azure Data Factory ?

or Do you have any solution to encrypt HmacSHA256 on Azure Data Factory ?

Best regards,

NK.

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,859 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Ganesh Gurram 1,120 Reputation points Microsoft Vendor
    2024-09-24T06:55:34.4366667+00:00

    @Nanchai Ko - Thanks for the question and using MS Q&A platform. 

    According to the official documentation: HMAC authentication - REST API reference

    You can authenticate HTTP requests by using the HMAC-SHA256 authentication scheme. (HMAC refers to hash-based message authentication code.) These requests must be transmitted over TLS.

    User's image

    You can use Web Activity to pass function encrypt HMAC-SHA256 on Azure Data Factory.

    Note: You can also use HTTP or REST connector to to pass function encrypt HMAC-SHA256 on Azure Data Factory

    Web Activity can be used to call a custom REST endpoint from an Azure Data Factory or Synapse pipeline. You can pass datasets and linked services to be consumed and accessed by the activity.

    User's image

    You may checkout the similar MS Q&A thread addressing similar issue: ADF Web Activity - Fails with custom Authorization Header You can add multiple headers instead of separating them by comma like below:

    270878-image.png

    For more details, refer to Web activity in Azure Data Factory and Azure Synapse Analytics

    Hope this helps. Do let us know if you have any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.