forgery/templates/auth.html

22 lines
823 B
HTML

{% extends "base.html" %}
{% block title %}Authentication{% endblock title %}
{% block content %}
<h1>Authentication required</h1>
<p>
To obtain a suitable API token, you must login to Forgejo using an
administrator account and go to <a href="{{forge_url}}user/settings/applications">{{forge_url}}user/settings/applications</a>.
Then, create an API token with access to all organizations and repos, allowing
read and writet access to: "admin", "misc", "organization", "issue", "repository" and "user". Store
the resulting token safely (e.g. in your password manager).
</p>
<form method="post">
<label for="token">Forgejo API token:</label>
<input id="token" name="token" type="password" required/>
<input type="submit" value="Submit" class="button"/>
</form>
{% endblock content %}