Skip to content

Commit a8df977

Browse files
authored
Update instructions for capturing HTTPS traffic with Fiddler
Edit review per CI 4497
1 parent c3839fd commit a8df977

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

support/entra/entra-id/app-integration/capture-https-traffic-fiddler-python-app.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,31 @@
11
---
22
title: Collect HTTPSTraffic using Fiddler from Python app with Microsoft Entra ID
3-
description: Provide instructions on how to collect HTTPStraffic using Fiddler from Microsoft Entra ID Apps
3+
description: Provide instructions to collect HTTPStraffic by using Fiddler from Microsoft Entra ID apps
44
ms.date: 03/20/2025
55
ms.author: bachoang
66
ms.service: entra-id
77
ms.custom: sap:Enterprise Applications
88
---
9-
# Collect HTTPStraffic using Fiddler from Python Apps
9+
# Collect HTTPStraffic by using Fiddler from Python apps
1010

11-
Capturing encrypted HTTPSweb traffic in Python with Fiddler can be challenging because Python uses its own trusted certificate store rather than the operating system’s certificate store. Additionally, Python doesn't use a proxy by default in certain scenario. This article explains how to capture SSL traffic using Fiddler for Python app across different scenarios.
11+
Capturing encrypted HTTPSweb traffic in Python by using Fiddler can be challenging because Python uses its own trusted certificate store instead of the operating system certificate store. Additionally, by default, Python doesn't use a proxy in certain scenarios. This article explains how to capture SSL traffic by using the Fiddler for Python app in different scenarios.
1212

1313
## ADAL for Python
1414

15-
When you use Fiddler to capture HTTPStraffic in a Python app that integrates Azure Active Directory Authentication Library (ADAL), you may receive SSL errors. This issue occurs because Python doesn't trust the Fiddler certificate. Here are two methods to work around this issue:
15+
When you use Fiddler to capture HTTPStraffic in a Python app that integrates Azure Active Directory Authentication Library (ADAL), you might receive SSL error messages. This issue occurs because Python doesn't trust the Fiddler certificate. You can use either of two methods to work around this issue.
1616

1717
> [!Note]
18-
> Disabling SSL verification is a security risk. It should only be used for troubleshooting purposes and avoided in production environments.
18+
> Disabling SSL verification presents a security risk. You should use this method only to troubleshoot. You should not use it in production environments.
1919
20-
- Set an environment variable at the beginning of your Python app before initializing the AuthenticationContext object:
20+
- Set an environment variable at the beginning of your Python app before the `AuthenticationContext` object is initialized:
2121

2222
```python
2323
import os
2424
...
2525
os.environ["ADAL_PYTHON_SSL_NO_VERIFY"] = "1"
2626
```
2727
- Pass the `verify_ssl=False` flag to the AuthenticationContext method:
28+
2829
```python
2930
context = adal.AuthenticationContext(authority, verify_ssl=False)
3031
```
@@ -35,9 +36,9 @@ When you use the Microsoft Authentication Library (MSAL) for Python, you can dis
3536
```python
3637
app = msal.PublicClientApplication( client_id=appId, authority="https://login.microsoftonline.com/" + tenantId, verify=False )
3738
```
38-
## Python Requests Module
39+
## Python Requests module
3940

40-
The Requests module doesn't use Proxy by default. You must force the request to go through the Fiddler proxy. The following example shows how to do this:
41+
By default, the Requests module doesn't use a proxy. You must force the request to go through the Fiddler proxy, per the following example:
4142

4243
```python
4344
import requests
@@ -75,4 +76,5 @@ print(res.display_name)
7576
```
7677

7778
[!INCLUDE [Third-party disclaimer](../../../includes/third-party-disclaimer.md)]
79+
7880
[!INCLUDE [Azure Help Support](../../../includes/azure-help-support.md)]

0 commit comments

Comments
 (0)