mirror of
https://codeberg.org/readeck/browser-extension.git
synced 2026-05-08 11:22:27 +00:00
11f411c8fa
The current flow is quite complex and relies on listeners that can be conflicting with other extensions. This is a much simpler approach: - the OAuth redirection is a real, web accessible, resource - the redirection page sends a message to the extension with its query parameters - the oauthPrompt function listens to the message and resolves with the authorization result And that's it! This adds the oauth-callback.html page to "web_accessible_resources" for any http or https URL. Incidentally, this resolves #93
20 lines
562 B
HTML
20 lines
562 B
HTML
<!--
|
|
// SPDX-FileCopyrightText: © 2026 Olivier Meunier <olivier@neokraft.net>
|
|
//
|
|
// SPDX-License-Identifier: GPL-3.0-only
|
|
-->
|
|
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<meta name="color-scheme" content="light dark" />
|
|
<title>Please wait...</title>
|
|
<link rel="stylesheet" href="../dist/bundle.css" />
|
|
</head>
|
|
<body aria-live="polite">
|
|
<div class="mt-4 ml-4">Please wait...</div>
|
|
<script src="dist/oauth-callback.js"></script>
|
|
</body>
|
|
</html>
|