Skip to content

RNZ01/basic-auth-extention

Repository files navigation

Basic Auth Autofill

A small Chrome extension for automatically supplying HTTP Basic Auth credentials per origin or wildcard pattern.

Control page screenshot

Features

  • Save credentials for exact origins like https://staging.example.com
  • Save wildcard patterns like https://app-*.example.com
  • Enable or disable individual rows
  • Edit and remove saved rows
  • Import and export all saved credential rows as JSON
  • Extension icon opens the control page directly
  • Extension icon turns green when the current site is configured
  • Autofills only once per tab + URL
  • No always-on content script; toast is injected only after autofill
  • GitHub-inspired light/dark UI

Install locally

  1. clone this repo git clone https://github.com/RNZ01/basic-auth-extention.git
  2. Open Chrome and go to chrome://extensions.
  3. Enable Developer mode.
  4. Click Load unpacked.
  5. Select this repository folder.

Usage

  1. Click the extension icon.
  2. Add an origin or wildcard pattern.
  3. Enter username and password.
  4. Visit a site that triggers Basic Auth.

If you click the extension icon while on an unconfigured site, the control page opens with that site origin prefilled.

Data storage

Rows are stored locally in Chrome extension storage:

chrome.storage.local

Example shape:

{
  "https://app-*.example.com": {
    "username": "deploy-user",
    "password": "secret",
    "enabled": true
  }
}

Security note

Websites and other extensions cannot directly read this extension's storage. Credentials are not encrypted, so someone with access to your browser profile or machine may be able to inspect them.

For stronger protection, add a master-password encryption flow before storing secrets.

License

MIT

About

Autofill basic auth

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors