You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: support/entra/entra-id/app-integration/capture-https-traffic-fiddler-python-app.md
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,30 +1,31 @@
1
1
---
2
2
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
4
4
ms.date: 03/20/2025
5
5
ms.author: bachoang
6
6
ms.service: entra-id
7
7
ms.custom: sap:Enterprise Applications
8
8
---
9
-
# Collect HTTPStraffic using Fiddler from Python Apps
9
+
# Collect HTTPStraffic by using Fiddler from Python apps
10
10
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.
12
12
13
13
## ADAL for Python
14
14
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.
16
16
17
17
> [!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.
19
19
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:
21
21
22
22
```python
23
23
import os
24
24
...
25
25
os.environ["ADAL_PYTHON_SSL_NO_VERIFY"] ="1"
26
26
```
27
27
- Pass the `verify_ssl=False` flag to the AuthenticationContext method:
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:
0 commit comments