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>
25 lines
731 B
HTML
25 lines
731 B
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}Login - StarPunk Admin{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="login-container">
|
|
<h2>Admin Login</h2>
|
|
<p>Sign in with {{ config.OIDC_PROVIDER_NAME }} to manage this site.</p>
|
|
|
|
<form action="{{ url_for('auth.login_initiate') }}" method="POST" class="login-form">
|
|
<button type="submit" class="button button-primary">Sign in with {{ config.OIDC_PROVIDER_NAME }}</button>
|
|
</form>
|
|
|
|
{% if config.DEV_MODE %}
|
|
<div class="dev-login-option">
|
|
<hr>
|
|
<p class="dev-warning">Development mode active</p>
|
|
<a href="{{ url_for('dev_auth.dev_login') }}" class="button button-warning">
|
|
Quick Dev Login (No Auth)
|
|
</a>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
{% endblock %}
|