Half-implement an IndieAuth authorization endpoint - it accepts the right parameters, verifies your client_id, and displays a prompt, but you can't actually approve the auth yet
This commit is contained in:
parent
d234fd942d
commit
93be2f5a32
7 changed files with 145 additions and 1 deletions
24
lemonauth/templates/lemonauth/indie.html
Normal file
24
lemonauth/templates/lemonauth/indie.html
Normal file
|
@ -0,0 +1,24 @@
|
|||
{% extends 'lemoncurry/layout.html' %}
|
||||
{% block main %}
|
||||
<div class="container">
|
||||
<form class="card" method="post" action="{% url 'lemonauth:indie' %}">
|
||||
<h4 class="card-header">
|
||||
<a href="{{ params.client_id }}">{{ params.client_id }}</a>
|
||||
</h4>
|
||||
|
||||
<div class="card-body">
|
||||
<p class="card-text">do you want to confirm your identity, <a href="{{ params.me }}">{{ params.me }}</a>, with this app?</p>
|
||||
</div>
|
||||
|
||||
<div class="card-footer">
|
||||
<p class="card-text">you can't actually auth yet but this button is how you will do it</p>
|
||||
<button class="btn btn-success" type="button">
|
||||
<i class="fa fa-check"></i>
|
||||
approve
|
||||
</button>
|
||||
</div>
|
||||
|
||||
{% csrf_token %}
|
||||
</form>
|
||||
</div>
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue