- All dependencies to current releases (97 known vulnerabilities -> 0), Python 3.14, uv pinned, requirements-test.txt, lxml/dateutil pinned - CSRF tokens on admin forms, logout and IndieAuth consent - IndieAuth client and crosspost link-card fetches via safe_get - FLASK_DEBUG/FLASK_ENV default off/production; image sets them - Foreign keys enforced on pooled connections; migration 018 removes orphans - Rate limits shared across processes (rate_limits, migration 019) - datetime.utcnow() and sqlite3 default adapters replaced - compose.yaml fixed; duplicate dev_auth.py and test.ini removed Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
44 lines
1.4 KiB
HTML
44 lines
1.4 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}Authorize App - StarPunk{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="login-container authorize">
|
|
{% if request_error %}
|
|
<h2>Cannot authorize this app</h2>
|
|
<p>{{ request_error }}</p>
|
|
<p><a href="/">Return to homepage</a></p>
|
|
{% else %}
|
|
<h2>Authorize app</h2>
|
|
<p>
|
|
<strong>{{ auth_request.client_id }}</strong> wants to sign in as
|
|
<strong>{{ me }}</strong>.
|
|
</p>
|
|
<p><small>After approval you will be sent to {{ auth_request.redirect_uri }}</small></p>
|
|
|
|
<form action="{{ url_for('indieauth.approve') }}" method="POST" class="login-form"><input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
|
{% for name, value in fields.items() %}
|
|
<input type="hidden" name="{{ name }}" value="{{ value }}">
|
|
{% endfor %}
|
|
|
|
{% if auth_request.scopes %}
|
|
<fieldset>
|
|
<legend>Permissions requested</legend>
|
|
{% for scope in auth_request.scopes %}
|
|
<label>
|
|
<input type="checkbox" name="scope_granted" value="{{ scope }}" checked>
|
|
{{ scope }}
|
|
</label><br>
|
|
{% endfor %}
|
|
</fieldset>
|
|
{% else %}
|
|
<p>This app only wants to confirm your identity. It cannot post.</p>
|
|
{% endif %}
|
|
|
|
<button type="submit" name="decision" value="approve" class="button button-primary">Approve</button>
|
|
<button type="submit" name="decision" value="deny" class="button button-secondary">Deny</button>
|
|
</form>
|
|
{% endif %}
|
|
</div>
|
|
{% endblock %}
|