Authenticate function using client certificate from the logic app

AnilYadav-2387 20 Reputation points
2023-02-21T17:03:19.7666667+00:00

How to authenticate Azure function using client certificate from logic app. logic app has to call function and authenticate function using client certificate. How can we achieve this requirement from logic app and function.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,327 questions
Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,307 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 70,791 Reputation points
    2023-02-22T05:36:32.3233333+00:00

    @AnilYadav-2387 Thanks for reaching out. To authenticate a function using a client certificate in Azure Logic Apps, you can use the "Client Certificate" option in the HTTP action. You need to specify the following property values:

    • Authentication: type (Required)
      • Value: Client Certificate or ClientCertificate
    • Pfx: pfx (Required)
      • Value: base64-encoded content from a Personal Information Exchange (PFX) file
    • Password: password (Optional)
      • Value: password for accessing the PFX file

    Here is an example HTTP action definition that specifies the authentication type as ClientCertificate:

    "HTTP": { "type": "Http", "inputs": { "method": "GET", "uri": "@parameters('endpointUrlParam')", "authentication": { "type": "ClientCertificate", "pfx": "@parameters('pfxParam')", "password": "@parameters('passwordParam')" } }, "runAfter": {}
    }
    

    For more information, you can refer to this document and make sure you go through some of the errors documented here. For base64 encode please refer to base64 function.

    Feel free to get back to me if you need any assistance.

    Please accept as "Yes" if the answer is helpful so that it can help others in the community.


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.