def post_to_custom_auth_form(request):
 pipeline_data = request.session.pop('tpa_custom_auth_entry_data', None)
 if (not pipeline_data):
  raise Http404
 data = {'post_url': pipeline_data['post_url'], 'data': pipeline_data['data'], 'hmac': pipeline_data['hmac']}
 return render(request, 'third_party_auth/post_custom_auth_entry.html', data)

def post_to_custom_auth_form ( request ) : pipeline_data = request . session . pop ( 'tpa_custom_auth_entry_data' , None ) if ( not pipeline_data ) : raise Http404 data = { 'post_url' : pipeline_data [ 'post_url' ] , 'data' : pipeline_data [ 'data' ] , 'hmac' : pipeline_data [ 'hmac' ] } return render ( request , 'third_party_auth/post_custom_auth_entry.html' , data )
redirect to a custom login/register page .