Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions .github/ISSUE_TEMPLATE/0-bug.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,13 @@ body:
- type: textarea
id: logs
validations:
required: false
required: true
attributes:
label: Log Output
description: Paste any relevant logs or output in this box.
placeholder: Output is automatically wrapped in a code block.
label: Support Information
description: Open the extension options, scroll to the bottom, click Copy Support Information and paste below.
render: shell

- type: markdown
attributes:
value: |
Thank you for taking the time to make this report!
All issues/bugs that we can verify will be fixed. Thank you for taking the time to make this report!
67 changes: 33 additions & 34 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,23 @@

# Auto Auth

<a title="Install Release" href="https://github.com/cssnr/auto-auth?tab=readme-ov-file#readme" target="_blank">
<img alt="Install Release" align="right" width="128" height="auto" src="https://raw.githubusercontent.com/cssnr/auto-auth/refs/heads/master/.github/assets/logo-green.png"></a>

- [Install](#Install)
- [Features](#Features)
- [Upcoming Features](#Upcoming-Features)
- [Known Issues](#Known-Issues)
- [Configuration](#Configuration)
- [Migration](#Migration)
- [AutoAuth](#AutoAuth)
- [Basic Authentication](#Basic-Authentication)
- [Other or Manual](#Other-or-Manual)
- [Security](#Security)
- [Support](#Support)
- [Development](#Development)
- [Building](#Building)
- [Contributing](#Contributing)
<a title="Auto Auth" href="https://github.com/cssnr/auto-auth?tab=readme-ov-file#readme" target="_blank">
<img alt="Auto Auth" align="right" width="128" height="auto" src="https://raw.githubusercontent.com/cssnr/auto-auth/refs/heads/master/src/images/logo128.png"></a>

- [Install](#install)
- [Features](#features)
- [Upcoming Features](#upcoming-features)
- [Known Issues](#known-Issues)
- [Configuration](#configuration)
- [Migration](#migration)
- [AutoAuth](#autoauth)
- [Basic Authentication](#basic-authentication)
- [Other or Manual](#other-or-manual)
- [Security](#security)
- [Support](#support)
- [Development](#development)
- [Building](#building)
- [Contributing](#contributing)

Modern Chrome Web Extension and Firefox Browser Addon for Automatic Basic HTTP Authentication with many Options and
Features.
Expand Down Expand Up @@ -88,10 +88,9 @@ Long-term Goals for Improved Security:
- Add Optional Password Encryption Feature
- Add a Sync Service for Cross-Browser Synchronization

> [!TIP]
> [!TIP]
> **Don't see your feature here?**
> Request one on
> the [Feature Request Discussion](https://github.com/cssnr/auto-auth/discussions/categories/feature-requests).
> Submit a [Feature Request](https://github.com/cssnr/auto-auth/issues/new?template=1-feature.yaml).

### Known Issues

Expand All @@ -105,9 +104,9 @@ Long-term Goals for Improved Security:
- Chrome: Shows a default credentials prompt, Cancel and press `Ctrl+F5`
- This behavior may continue after saving credentials.

> [!TIP]
> [!TIP]
> **Don't see your issue here?**
> Open one on the [Issues](https://github.com/cssnr/auto-auth/issues).
> Open a [New Issues](https://github.com/cssnr/auto-auth/issues).

## Configuration

Expand Down Expand Up @@ -166,7 +165,7 @@ You can do this yourself, or get ChatGPT to convert the data for you. Convert th

To import the data, visit the extension's Options Page, click `Import Text` and paste the JSON text.

You can also [request a migration](https://github.com/cssnr/auto-auth/discussions/categories/feature-requests) be added
You can also [request a migration](https://github.com/cssnr/auto-auth/issues/new?template=1-feature.yaml) be added
for your extension. If it is popular enough, it might get added.

## Security
Expand All @@ -183,20 +182,20 @@ If there is enough popularity/requests for these features, there are a couple op

## Support

For help using the web extension, see:

- Documentation: https://auto-auth.cssnr.com/docs/
- Q&A Discussion: https://github.com/cssnr/auto-auth/discussions/categories/q-a
- Request a Feature: https://github.com/cssnr/auto-auth/discussions/categories/feature-requests
Logs can be found inspecting the page (Ctrl+Shift+I), clicking on the Console, and;
Firefox: toggling Debug logs, Chrome: toggling Verbose from levels dropdown.

If you are experiencing an issue/bug or getting unexpected results, you can:
If you run into any issues or need help getting started, please do one of the following:

- Report an Issue: https://github.com/cssnr/auto-auth/issues
- Chat with us on Discord: https://discord.gg/wXy6m2X8wY
- Provide General Feedback: https://cssnr.github.io/feedback
- Report an Issue: <https://github.com/cssnr/auto-auth/issues>
- Q&A Discussion: <https://github.com/cssnr/auto-auth/discussions/categories/q-a>
- Request a Feature: <https://github.com/cssnr/auto-auth/issues/new?template=1-feature.yaml>
- Chat with us on Discord: <https://discord.gg/wXy6m2X8wY>

Logs can be found inspecting the page (Ctrl+Shift+I), clicking on the Console, and;
Firefox: toggling Debug logs, Chrome: toggling Verbose from levels dropdown.
[![Features](https://img.shields.io/badge/features-brightgreen?style=for-the-badge&logo=rocket&logoColor=white)](https://github.com/cssnr/auto-auth/issues/new?template=1-feature.yaml)
[![Issues](https://img.shields.io/badge/issues-red?style=for-the-badge&logo=southwestairlines&logoColor=white)](https://github.com/cssnr/auto-auth/issues)
[![Discussions](https://img.shields.io/badge/discussions-blue?style=for-the-badge&logo=livechat&logoColor=white)](https://github.com/cssnr/auto-auth/discussions)
[![Discord](https://img.shields.io/badge/discord-5865F2?style=for-the-badge&logo=discord&logoColor=white)](https://discord.gg/wXy6m2X8wY)

To support this project, see the [Contributing](#Contributing) section at the bottom.

Expand Down
2 changes: 1 addition & 1 deletion manifest-chrome.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"background": {
"service_worker": "js/service-worker.js"
},
"minimum_chrome_version": "120"
"minimum_chrome_version": "127"
}
2 changes: 1 addition & 1 deletion manifest-firefox.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"required": ["none"]
}
},
"gecko_android ": {
"gecko_android": {
"strict_min_version": "128.0"
}
}
Expand Down
24 changes: 12 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "auto-auth",
"private": true,
"scripts": {
"postinstall": "npx gulp",
"lint:eslint": "npx eslint src/js tests",
Expand Down
10 changes: 5 additions & 5 deletions src/html/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -172,15 +172,15 @@ <h5><i class="fa-solid fa-key me-2"></i> Saved Credentials</h5>

<div class="mb-1 small">
<a id="export-hosts" class="link-body-emphasis text-decoration-none d-inline-block" role="button">
Export <i class="fa-solid fa-file-arrow-down ms-1"></i></a>
Export <i class="fa-solid fa-right-from-bracket fa-rotate-90 ms-1"></i></a>
<span class="mx-1">&bull;</span>
<input type="file" id="hosts-input" style="display: none;" />
<input id="hosts-input" type="file" style="display: none;" />
<a id="import-file" class="link-body-emphasis text-decoration-none d-inline-block" role="button">
Import File <i class="fa-solid fa-file-arrow-up ms-1"></i></a>
Import File <i class="fa-solid fa-right-to-bracket fa-rotate-90 ms-1"></i></a>
<span class="mx-1">&bull;</span>
<a class="link-body-emphasis text-decoration-none d-inline-block" role="button" data-bs-toggle="modal" data-bs-target="#import-modal">
Import Text <i class="fa-solid fa-paste ms-1"></i></a>
</div>
Import Text <i class="fa-solid fa-align-left ms-1"></i></a>
</div> <!-- import/export -->

<button id="add-hosts" data-action="add" class="btn btn-outline-success ms-2 my-2">
Add Host <i class="fa-solid fa-add ms-1"></i></button>
Expand Down
6 changes: 5 additions & 1 deletion src/js/export.js
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,10 @@ export async function updateManifest() {
export async function updateBrowser() {
let selector = '.chrome'
// noinspection JSUnresolvedReference
if (typeof browser?.runtime?.getBrowserInfo === 'function') {
if (
typeof browser !== 'undefined' &&
typeof browser?.runtime?.getBrowserInfo === 'function'
) {
selector = '.firefox'
}
console.debug('updateBrowser:', selector)
Expand Down Expand Up @@ -484,6 +487,7 @@ export async function onRemoved(permissions) {

/**
* Open Popup Click Callback
* NOTE: Requires Chrome>=127
* @function openPopup
* @param {Event} [event]
*/
Expand Down
11 changes: 7 additions & 4 deletions src/js/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,10 @@ async function onStartup() {
// console.debug('options:', options)
await updateIcon(options)
// noinspection JSUnresolvedReference
if (typeof browser?.runtime?.getBrowserInfo === 'function') {
if (
typeof browser !== 'undefined' &&
typeof browser?.runtime?.getBrowserInfo === 'function'
) {
console.log('Firefox CTX Menu Workaround')
if (options.contextMenu) {
createContextMenus()
Expand Down Expand Up @@ -387,16 +390,16 @@ function createContextMenus() {
const contexts = [
// [['all'], 'showPanel', 'Open Panel'],
// [['all'], 'separator'],
[['all'], 'openPopup', 'Open Popup'],
[['all'], 'openOptions', 'Auto Auth Options'],
[['all'], 'openPopup', 'Activate Popup'],
[['all'], 'openOptions', 'Open Options'],
]
contexts.forEach(addContext)
}

/**
* Add Context from Array
* @function addContext
* @param {[chrome.contextMenus.ContextType[],String,String,chrome.contextMenus.ContextType?]} context
* @param {[chrome.contextMenus.ContextType[],String,String?,chrome.contextMenus.ContextType?]} context
*/
function addContext(context) {
console.debug('addContext:', context)
Expand Down
1 change: 0 additions & 1 deletion src/js/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@

document.querySelectorAll('[data-bs-theme-value]').forEach((el) => {
el.addEventListener('click', () => {
// const value = el.getAttribute('data-bs-theme-value')
const value = el.dataset.bsThemeValue
setStoredTheme(value)
setTheme(value)
Expand Down
Loading