Admin login now uses OpenID Connect (PKCE, nonce, ID token verified against the provider JWKS) and only OIDC_ADMIN_SUB may log in. Micropub tokens are issued and verified by StarPunk itself, with a consent screen behind the OIDC session and a Connected Apps page to revoke them, so an external IndieAuth server (Gondulf) is no longer needed. Existing notes, media, tags, webmentions, author profile and sessions are unchanged. Migration 011 adds new tables only. BREAKING CHANGE: production requires OIDC_ISSUER, OIDC_CLIENT_ID, OIDC_CLIENT_SECRET and OIDC_ADMIN_SUB. The ADMIN_ME page must point Micropub apps at StarPunk's IndieAuth endpoints. See ADR-064. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
24 lines
760 B
HTML
24 lines
760 B
HTML
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
|
<div class="admin-container">
|
|
<nav class="admin-nav">
|
|
<a href="{{ url_for('admin.dashboard') }}">Dashboard</a>
|
|
<a href="{{ url_for('admin.new_note_form') }}">New Note</a>
|
|
<a href="{{ url_for('admin.metrics_dashboard') }}">Metrics</a>
|
|
<a href="{{ url_for('admin.tokens') }}">Connected Apps</a>
|
|
<form action="{{ url_for('auth.logout') }}" method="POST" class="logout-form">
|
|
<button type="submit" class="button button-secondary">Logout</button>
|
|
</form>
|
|
</nav>
|
|
|
|
<div class="admin-content">
|
|
{% if user_me %}
|
|
<p class="user-identity">Logged in as: <strong>{{ user_me }}</strong></p>
|
|
{% endif %}
|
|
|
|
{% block admin_content %}{% endblock %}
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|