- Print
- DarkLight
Add HTTP headers and Client Certificate for test execution
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
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:
- Receive the session from AUT with a headless browser
- Start the mitmproxy server after adding the session to the header modification configurations of mitmproxy
- 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
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.