Added a more detailed callback view

This commit is contained in:
2011-08-10 10:58:40 +01:00
parent dcc0f2102d
commit da8107c981
2 changed files with 16 additions and 2 deletions

View File

@@ -7,8 +7,9 @@ from django.contrib import messages
from piston import forms
from piston.models import Token
def oauth_callback_view(request, other):
return HttpResponse("The application you allowed access to didn't request a callback, thats odd and should be fixed")
@login_required
def oauth_callback_view(request, token):
return render_to_response('piston/callback_view.html', {'token': token })
@login_required

View File

@@ -0,0 +1,13 @@
{% extends "base.html" %}
{% block title %}OAuth Access Authorization{% endblock %}
{% block content %}
<h1>Access Authorization</h1>
<p>Access is now enabled for the requesting application. It seems the application did not provide a way to give it the required information so you need to provide this to it. This has happened either due to it being a desktop application or not being configured properly.</p>
<p>Token/PIN: <b>{{ token }}</td></p>
{% endblock %}