Advertise the new token endpoint
This commit is contained in:
parent
179f5753ed
commit
5b70c59f83
2 changed files with 5 additions and 0 deletions
|
@ -12,6 +12,7 @@
|
||||||
{% block head %}{% endblock %}
|
{% block head %}{% endblock %}
|
||||||
|
|
||||||
<link rel="authorization_endpoint" href="{{ origin }}{% url 'lemonauth:indie' %}" />
|
<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.delegate" href="{{ origin }}" />
|
||||||
<link rel="openid.server" href="https://openid.indieauth.com/openid" />
|
<link rel="openid.server" href="https://openid.indieauth.com/openid" />
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,10 @@ def add_links(request, dest):
|
||||||
href=urljoin(base, reverse('lemonauth:indie')),
|
href=urljoin(base, reverse('lemonauth:indie')),
|
||||||
rel='authorization_endpoint'
|
rel='authorization_endpoint'
|
||||||
),
|
),
|
||||||
|
Link(
|
||||||
|
href=urljoin(base, reverse('lemonauth:token')),
|
||||||
|
rel='token_endpoint'
|
||||||
|
),
|
||||||
Link(
|
Link(
|
||||||
template=urljoin(base, webfinger),
|
template=urljoin(base, webfinger),
|
||||||
type_='application/json', rel='lrdd',
|
type_='application/json', rel='lrdd',
|
||||||
|
|
Loading…
Reference in a new issue