mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-20 17:52:30 +02:00
Added sso_verified flag to EveApiKeyPair Set sso_verified flag when user validates API key Allow users to SSO validate existing API keys
65 lines
3.0 KiB
HTML
65 lines
3.0 KiB
HTML
{% extends "public/base.html" %}
|
|
{% load bootstrap %}
|
|
{% load staticfiles %}
|
|
{% load i18n %}
|
|
|
|
{% block title %}Alliance Auth{% endblock %}
|
|
|
|
{% block page_title %}{% trans "API Key Management" %}{% endblock page_title %}
|
|
{% block extra_css %}{% endblock extra_css %}
|
|
|
|
{% block content %}
|
|
<div class="col-lg-6 col-lg-offset-3">
|
|
<div class="row">
|
|
<h1 class="page-header text-center">{% trans "API Key Management" %}
|
|
<div class="text-right">
|
|
<a href="{% url 'auth_add_api_key' %}" class="btn btn-success">{% trans "Add Key" %}</a>
|
|
</div>
|
|
</h1>
|
|
{% if apikeypairs %}
|
|
<table class="table">
|
|
<tr>
|
|
<th class="text-center">{% trans "API ID" %}</th>
|
|
{% if api_sso_validation %}
|
|
<th class="text-center">{% trans "SSO Verified" %}</th>
|
|
{% endif %}
|
|
<th class="text-center">{% trans "Action" %}</th>
|
|
</tr>
|
|
{% for pair in apikeypairs %}
|
|
<tr>
|
|
<td class="text-center">{{ pair.api_id }}</td>
|
|
{% if api_sso_validation %}
|
|
<th class="text-center" style="font-size: 2em;">
|
|
{% if pair.sso_verified %}
|
|
<span class="glyphicon glyphicon-ok text-success" title="API key verified"></span>
|
|
{% else %}
|
|
<span class="glyphicon glyphicon-remove text-danger" title="API key not verified">
|
|
</span>
|
|
{% endif %}
|
|
</th>
|
|
{% endif %}
|
|
<td class="text-center">
|
|
<a href="{% url 'auth_user_refresh_api' pair.api_id %}" class="btn btn-success">
|
|
<span class="glyphicon glyphicon-refresh"></span>
|
|
</a>
|
|
<a href="{% url 'auth_api_key_removal' pair.api_id %}" class="btn btn-danger">
|
|
<span class="glyphicon glyphicon-remove"></span>
|
|
</a>
|
|
{% if api_sso_validation and not pair.sso_verified %}
|
|
<a href="{% url 'auth_api_sso' pair.api_id %}" class="btn btn-info"
|
|
title="EVE SSO verify this key">
|
|
<i class="fa fa-shield" aria-hidden="true"></i>
|
|
</a>
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
{% else %}
|
|
<div class="alert alert-danger" role="alert">{% trans "No api keys found" %}</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock content %}
|