Advertise the new token endpoint

This commit is contained in:
Danielle McLean 2017-11-03 17:19:25 +11:00
parent 179f5753ed
commit 5b70c59f83
Signed by: 00dani
GPG Key ID: 5A5D2D1AFF12EEC5
2 changed files with 5 additions and 0 deletions

View File

@ -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" />

View File

@ -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',