{% extends "example/base.html" %} {% load url from future %} {% block content %}

Test your OAuth2 provider, I'll be your consumer

{% if authorization_link %}

Ok, here is the link you have to use to reach your authorization page and beg for an authorization token

Now click, give your authorization and see you later, possibly with an access token

{{ authorization_link }} {% else %}

(At this point, you should have created an Application instance on your side, up and running.)

{% if not error %}
{{ form.non_field_errors }}
Build an authorization link for your provider {{ form.client_id.errors }} {{ form.client_id }} Your Application's client_id field. {{ form.authorization_url.errors }} {{ form.authorization_url }} The url to the authorization page, it's ok if it points to localhost (e.g. http://localhost:8000/o/authorize).
{% csrf_token %}
{% endif %} {% endif %} {% endblock %}