<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<style>
input.required, error {
border: 2px solid red;
}
</style>
<title>Log in</title>
</head>
<body>
<div id="sidebar">
</div>
<div id="content">
<form method="post" action="" id="loginForm">
<input type='hidden' name='csrfmiddlewaretoken' value='VALUE' />
<p><label for="id_username">Username:</label> <input id="id_username" maxlength="254" name="username" type="text" /></p>
<p><label for="id_password">Password:</label> <input id="id_password" name="password" type="password" /></p>
<input type="hidden" name="next" value="/o/authorize/?state=random_state_string&response_type=code&client_id=VALUE" />
<input type="submit" value="Log in" />
</form>
<p>Forgot your password? <a href="/accounts/password/reset/">Reset it</a>.</p>
<p>Not a member? <a href="/accounts/register/">Register</a>.</p>
</div>
</body>
</html>(env)
I am unable to get a code back as I get stuck at the login screen. Can someone please explain me on how to get complete authentication to work using django oauth2 framework.
I have followed http://django-oauth-toolkit.readthedocs.org/en/latest/tutorial/tutorial_01.html
Any updates on this please? I am stuck with this issue for quite a while now.
--
You received this message because you are subscribed to the Google Groups "Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-fram...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
{% extends "base.html" %}
{% block content %}
{% if form.errors %}
<p>Your username and password didn't match. Please try again.</p>
{% endif %}
<form method="post" action="{% url 'django.contrib.auth.views.login' %}">
{% csrf_token %}
<table>
<tr>
<td>{{ form.username.label_tag }}</td>
<td>{{ form.username }}</td>
</tr>
<tr>
<td>{{ form.password.label_tag }}</td>
<td>{{ form.password }}</td>
</tr>
</table>
<input type="submit" value="login" />
<input type="hidden" name="next" value="{{ next }}" />
</form>
{% endblock %}