Files
Olivier Meunier 11f411c8fa Simplified authorization flow
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
2026-02-04 15:51:02 +01:00

20 lines
556 B
HTML

<!--
// SPDX-FileCopyrightText: © 2025 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>Readeck Settings</title>
<link rel="stylesheet" href="./dist/bundle.css" />
</head>
<body aria-live="polite">
<div id="app" class="bg-gray-light"></div>
</body>
<script src="./dist/settings.js"></script>
</html>