`[web.no_sign_in]` instead of the OIDC settings makes everyone who reaches the web app one approver, so the demo needn't run a sign-in provider and tests can use the app. It only listens on a loopback address, every page says there's no sign-in, the audit log records `<name> (web, no sign-in)`, and it can't approve requests that need a passkey. The NixOS module has it only as an internal option, for the VM test. The VM test uses it to check a finished deploy's page, the event stream, and answering a request with the session's token. Refs #28 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
35 lines
1.1 KiB
HTML
35 lines
1.1 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>{% block title %}{% endblock %}</title>
|
|
<link rel="stylesheet" href="/style.css">
|
|
<link rel="manifest" href="/manifest.webmanifest">
|
|
<link rel="icon" href="/icon.svg">
|
|
<script src="/idiomorph.js" defer></script>
|
|
<script src="/app.js" defer></script>
|
|
</head>
|
|
<body>
|
|
{% block header -%}
|
|
<header>
|
|
<nav><a href="/">Pending</a> <a href="/log">Log</a></nav>
|
|
<form method="post" action="/auth/logout" class="account">
|
|
<span class="version">slop-broker {{ crate::web::page::VERSION }}</span>
|
|
<span>{{ name }}</span>
|
|
{% if !crate::web::page::no_sign_in() -%}
|
|
<input type="hidden" name="csrf" value="{{ csrf }}">
|
|
<button type="submit" class="quiet">Sign out</button>
|
|
{%- endif %}
|
|
</form>
|
|
</header>
|
|
{% if crate::web::page::no_sign_in() -%}
|
|
<p class="no-sign-in">No sign-in: everyone who reaches this app approves as {{ name }}. For the demo and tests only.</p>
|
|
{%- endif %}
|
|
{%- endblock %}
|
|
<main>
|
|
{% block main %}{% endblock %}
|
|
</main>
|
|
</body>
|
|
</html>
|