indieauth_flow.html 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. {% extends "layout.html" %}
  2. {% import 'utils.html' as utils %}
  3. {% block header %}
  4. {% endblock %}
  5. {% block content %}
  6. <aside>
  7. {% if client.logo %}
  8. <div style="flex:initial;width:100px;">
  9. <img src="{{client.logo}}" style="max-width:100px;">
  10. </div>
  11. {% endif %}
  12. <a style="color:#FFFFFF" href="{{ client.url }}">{{ client.name }}</a> wants you to login.
  13. <form method="POST" action="{{ url_for('indieauth_flow') }}">
  14. {% if scopes %}
  15. <b>Scopes:</b>
  16. <ul style="margin:0;list-style-type:none">
  17. {% for scope in scopes %}
  18. <li style="margin-left:-40px"><input type="checkbox" name="scopes" value="{{scope}}" id="scope-{{scope}}"><label for="scope-{{scope}}">&nbsp;{{ scope }}</label>
  19. </li>
  20. {% endfor %}
  21. </ul>
  22. {% endif %}
  23. <input type="hidden" name="redirect_uri" value="{{ redirect_uri }}">
  24. <input type="hidden" name="state" value="{{ state }}">
  25. <input type="hidden" name="client_id" value="{{ client_id }}">
  26. <input type="hidden" name="me" value="{{ me }}">
  27. <input type="hidden" name="response_type" value="{{ response_type }}">
  28. <br/><center><input type="submit" value="Login" class="pure-button pure-button-success"></center>
  29. </form>
  30. </aside>
  31. {% endblock %}