From 5b70c59f83a3036e249b027ec94b3f32c263db3a Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Fri, 3 Nov 2017 17:19:25 +1100 Subject: [PATCH] Advertise the new token endpoint --- lemoncurry/templates/lemoncurry/layout.html | 1 + wellknowns/views/host_meta.py | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/lemoncurry/templates/lemoncurry/layout.html b/lemoncurry/templates/lemoncurry/layout.html index a37f6ee..014c4dc 100644 --- a/lemoncurry/templates/lemoncurry/layout.html +++ b/lemoncurry/templates/lemoncurry/layout.html @@ -12,6 +12,7 @@ {% block head %}{% endblock %} + diff --git a/wellknowns/views/host_meta.py b/wellknowns/views/host_meta.py index 52e5432..c619e09 100644 --- a/wellknowns/views/host_meta.py +++ b/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',