[saml] move redirect_next into saml.common
This commit is contained in:
parent
3a5b6690a1
commit
5b58e722f3
|
@ -26,7 +26,6 @@ from authentic2.saml.models import *
|
|||
from authentic2.authsaml2.utils import *
|
||||
from authentic2.authsaml2 import signals
|
||||
from authentic2.authsaml2.models import *
|
||||
from authentic2.idp.saml.saml2_endpoints import redirect_next
|
||||
from backends import AuthSAML2PersistentBackend, \
|
||||
AuthSAML2TransientBackend
|
||||
|
||||
|
|
|
@ -973,12 +973,6 @@ def ko_icon(request):
|
|||
def ok_icon(request):
|
||||
return HttpResponseRedirect('%s/images/ok.png' % settings.MEDIA_URL)
|
||||
|
||||
def redirect_next(request, next):
|
||||
if next:
|
||||
return HttpResponseRedirect(next)
|
||||
else:
|
||||
return None
|
||||
|
||||
@login_required
|
||||
def idp_slo(request, provider_id):
|
||||
'''Send a single logout request to a SP, if given a next parameter, return
|
||||
|
|
|
@ -631,6 +631,12 @@ def error_page(request, message, back = None, logger = None):
|
|||
return render_to_response('error.html', {'msg': message, 'back': back},
|
||||
context_instance=RequestContext(request))
|
||||
|
||||
def redirect_next(request, next):
|
||||
if next:
|
||||
return HttpResponseRedirect(next)
|
||||
else:
|
||||
return None
|
||||
|
||||
def soap_fault(request, faultcode='soap:Client', faultstring=None):
|
||||
if faultstring:
|
||||
faultstring = '\n <faultstring>%s</faultstring>\n' % faultstring
|
||||
|
|
Loading…
Reference in New Issue