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

Token Trading!

Error retrieving access token!
{% if not error %} {% if not noparams %}

This step of the OAuth2 authentication process is usually performed automatically by the consumer. For testing purposes, we simulate the POST request to the token endpoint provided by the Authorization Server with a form.

{{ form.non_field_errors }}
Trade your authorization token for a more powerful access token {{ form.code.errors }} {{ form.code }} The authorization token provided by your server {{ form.state.errors }} {{ form.state }} Sort of csrf. {{ form.token_url.errors }} {{ form.token_url }} The url in your server where to retrieve the access token, it's ok if it points to localhost (e.g. http://localhost:8000/o/token/). {{ form.redirect_url.errors }} {{ form.redirect_url }} The url of the consumer redirect_uri, must match at least one of the uris provided by the Application instance in the Authorization server. {{ form.client_id.errors }} {{ form.client_id }} One more time. {{ form.client_secret.errors }} {{ form.client_secret }} Get it from Application instance in the Authorization server.
{% csrf_token %}
{% else %}

You're not supposed to be here!

{% endif %} {% endif %} {% endblock %} {% block javascript %} {% endblock javascript %}