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

Test your OAuth2 provider, I'll be your consumer

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

{% if authorization_link %}

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

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

{{ authorization_link }} {% else %} {% 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 %}