Add HTTP headers and Client Certificate for test execution
  • 25 Sep 2024
  • 1 Minute to read
  • Contributors
  • Dark
    Light

Add HTTP headers and Client Certificate for test execution

  • Dark
    Light

Article summary

You can add request headers or use a client certificate for mTLS authentication by placing a proxy server between Autify Connect Client and your application under test (hereinafter "AUT").

This article shows two examples that use mitmproxy as a proxy server between Autify Connect Client and AUT. One is to add request headers to HTTP requests to AUT, and the other is to use a client certificate for mTLS authentication.

Note: We do not guarantee anything about mitmproxy since it is not our product.

Adding request headers

using-mitmproxy-for-custom-request-headers_en.png

As the above figure shows, the mitmproxy server should be placed between Autify Connect Client and AUT. For example, to add custom headers to manage sessions:

  1. Receive the session from AUT with a headless browser
  2. Start the mitmproxy server after adding the session to the header modification configurations of mitmproxy
  3. Start the Autify Connect Client server, setting the mitmproxy server as the proxy server

Refer to the following official document to learn about the header modification configurations of mitmproxy.

Refer to the following article to learn about the configurations to use the proxy between Autify Connect Client and AUT.

Using a client certificate

using-mitmproxy-for-client-certificate_en.png

As the above figure shows, the mitmproxy server should be placed between Autify Connect Client and AUT. To use a client certificate, specify it in the mitmproxy options when the server is starting. Once the client certificate is configured, it will be used during the handshake for mTLS.

Refer to the following official document to learn about how to configure the client certificate in mitmproxy.

Refer to the following article to learn about the configurations when using the proxy between Autify Connect Client and AUT.


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.