mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Added a more detailed callback view
This commit is contained in:
@@ -7,8 +7,9 @@ from django.contrib import messages
|
|||||||
from piston import forms
|
from piston import forms
|
||||||
from piston.models import Token
|
from piston.models import Token
|
||||||
|
|
||||||
def oauth_callback_view(request, other):
|
@login_required
|
||||||
return HttpResponse("The application you allowed access to didn't request a callback, thats odd and should be fixed")
|
def oauth_callback_view(request, token):
|
||||||
|
return render_to_response('piston/callback_view.html', {'token': token })
|
||||||
|
|
||||||
|
|
||||||
@login_required
|
@login_required
|
||||||
|
|||||||
13
app/templates/piston/callback_view.html
Normal file
13
app/templates/piston/callback_view.html
Normal 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 %}
|
||||||
Reference in New Issue
Block a user