Browse Source

Advertise the new token endpoint

pull/1/head
Danielle McLean 5 years ago
parent
commit
5b70c59f83
Signed by: 00dani
GPG Key ID: 5A5D2D1AFF12EEC5
  1. 1
      lemoncurry/templates/lemoncurry/layout.html
  2. 4
      wellknowns/views/host_meta.py

1
lemoncurry/templates/lemoncurry/layout.html

@ -12,6 +12,7 @@
{% block head %}{% endblock %}
<link rel="authorization_endpoint" href="{{ origin }}{% url 'lemonauth:indie' %}" />
<link rel="token_endpoint" href="{{ origin }}{% url 'lemonauth:token' %}" />
<link rel="openid.delegate" href="{{ origin }}" />
<link rel="openid.server" href="https://openid.indieauth.com/openid" />

4
wellknowns/views/host_meta.py

@ -16,6 +16,10 @@ def add_links(request, dest):
href=urljoin(base, reverse('lemonauth:indie')),
rel='authorization_endpoint'
),
Link(
href=urljoin(base, reverse('lemonauth:token')),
rel='token_endpoint'
),
Link(
template=urljoin(base, webfinger),
type_='application/json', rel='lrdd',

Loading…
Cancel
Save