This feature enhances the Lighthouse CLI to handle authentication for web pages that require users to log in.
🚀 Motivation
Many web applications have critical pages behind login screens. Currently, the Lighthouse CLI cannot easily audit these pages, leading to incomplete performance assessments.
📝 Proposed Solution
Implement multiple authentication mechanisms in the Lighthouse CLI to cater to different authentication flows:
--auth-header: Allow users to provide an authentication header (e.g., Authorization: Bearer ) as a command-line argument.
--auth-cookie: Enable users to specify authentication cookies to be included in the requests.
--auth-script: Support a custom script (e.g., a Puppeteer script) that handles the authentication flow programmatically.
✨ Description
This feature enhances the Lighthouse CLI to handle authentication for web pages that require users to log in.
🚀 Motivation
Many web applications have critical pages behind login screens. Currently, the Lighthouse CLI cannot easily audit these pages, leading to incomplete performance assessments.
📝 Proposed Solution
Implement multiple authentication mechanisms in the Lighthouse CLI to cater to different authentication flows:
--auth-header
: Allow users to provide an authentication header (e.g., Authorization: Bearer--auth-cookie
: Enable users to specify authentication cookies to be included in the requests.--auth-script
: Support a custom script (e.g., a Puppeteer script) that handles the authentication flow programmatically.🔗 Relevant Links (if any)