Skip to content

[FEATURE]: Lighthouse CLI Support for Authenticated Pages #18

Description

@helabenkhalfallah

✨ 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 ) 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.

🔗 Relevant Links (if any)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions