-
Notifications
You must be signed in to change notification settings - Fork 7
Add example Thunderbird extension for OAuth2 authentication #311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
maneeshaxyz
merged 1 commit into
LSFLK:main
from
Aravinda-HWK:310-task-add-example-thunderbird-extension-for-oauth2
Mar 30, 2026
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| # Thunderbird OAuth Extension (Example) | ||
|
|
||
| This folder contains a sample `manifest.json` for a Thunderbird OAuth provider extension. | ||
|
|
||
| ## 1. Update placeholders | ||
|
|
||
| Edit [manifest.json](manifest.json) and replace all placeholders: | ||
|
|
||
| - `<YOUR_PROVIDER_NAME>` | ||
| - `<your-domain>` | ||
| - `<ISSUER_URL>` | ||
| - `<CLIENT_ID>` | ||
| - `<AUTHORIZATION_ENDPOINT>` | ||
| - `<TOKEN_ENDPOINT>` | ||
| - `<MAIL_DOMAIN>` | ||
|
|
||
| ## 2. Create the extension package | ||
|
|
||
| From this folder, run: | ||
|
|
||
| ```bash | ||
| zip -r thunderbird-oauth-provider.xpi manifest.json | ||
| ``` | ||
|
|
||
| This creates `thunderbird-oauth-provider.xpi`. | ||
|
|
||
| ## 3. Install in Thunderbird | ||
|
|
||
| 1. Open Thunderbird. | ||
| 2. Go to **Add-ons and Themes**. | ||
| 3. Click the gear icon and choose **Install Add-on From File...**. | ||
| 4. Select `thunderbird-oauth-provider.xpi`. | ||
| 5. Confirm prompts and restart Thunderbird if asked. | ||
|
|
||
| ## 4. Verify | ||
|
|
||
| - Set account authentication to OAuth2. | ||
| - Trigger sign-in and complete the OAuth login flow. | ||
| - Confirm send/receive works. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| { | ||
| "manifest_version": 2, | ||
| "name": "<YOUR_PROVIDER_NAME>", | ||
| "version": "1.0.0", | ||
| "applications": { | ||
| "gecko": { | ||
| "id": "oauth-provider@<your-domain>", | ||
| "strict_min_version": "128.0" | ||
| } | ||
| }, | ||
| "oauth_provider": { | ||
| "issuer": "<ISSUER_URL>", | ||
| "clientId": "<CLIENT_ID>", | ||
| "authorizationEndpoint": "<AUTHORIZATION_ENDPOINT>", | ||
| "tokenEndpoint": "<TOKEN_ENDPOINT>", | ||
| "redirectionEndpoint": "http://localhost", | ||
| "usePKCE": true, | ||
| "hostnames": ["<MAIL_DOMAIN>"], | ||
| "scopes": "openid email profile" | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.