HTTP Archive Files
Introduction
The HTTP Archive File Format (HAR) is a common developer import/export format which shows web requests that browsers make including all headers which includes cookies, forms submitted, etc.
This format allows users to open the developer tools, perform several actions, and then export a file with all of the requests that still exist in the network tab of the developer tools. This file is stored in JSON which makes it easy to view what information exists before sharing it. Subsequently users may import this file on another browser and see all of these requests which makes it easier to debug certain situations without having to replicate an environment or be present in an environment.
Sanitization
The following section outlines some helpful information if you wish to sanitize your HAR file to share it with others.
For generic sanitization information see the Troubleshooting Sanitization guide.
Security Sensitive Information
Important: this file may contain sensitive information which should be sanitized manually before sharing it anywhere with anyone. Sensitive information can vary wildly but some of the key areas that may be sensitive when exporting this for troubleshooting with Authelia are:
Cookierequest headerSet-Cookieresponse header- Data sent to the following endpoints:
/api/firstfactor: username / password/api/*/identity/start: the token query parameter/api/secondfactor/*: the post data
Instructions
The following are instructions on how to perform valuable HAR exports. The instructions for Chrome / Chromium should be applicable in all Chromium based browsers, and likewise for Firefox based browsers.
- Open your browser.
- Open a blank tab.
- Press Ctrl + Shift + I to open the browser Developer Tools.
- Open the
Networktab. - Ensure the browser persists logs:
- Firefox:
- Select the
Network Settingscog symbol at the top right of theNetworktab. - Ensure
Persist Logsis checked.
- Select the
- Chrome / Chromium:
- Ensure
Preserve logsin the top left of theNetworktab is checked.
- Ensure
- Firefox:
- Perform your intended requests, or the requests that have been requested.
- Export the HAR File:
- Firefox:
- Select the
Network Settingscog symbol at the top right of theNetworktab. - Select
Save All AS HAR.
- Select the
- Chrome / Chromium:
- Right click any request in the
Networktab. - Select
Save all as HAR with contentat the bottom of the dialogue.
- Right click any request in the
- Firefox: