def login_redirect(application_url, continue_url, start_response):
 if AppDashboardHelper.USE_SHIBBOLETH:
  redirect_url = '{0}:{1}/login?{2}={3}'.format(AppDashboardHelper.SHIBBOLETH_CONNECTOR, AppDashboardHelper.SHIBBOLETH_CONNECTOR_PORT, CONTINUE_PARAM, urllib.quote(continue_url))
 else:
  hostname = os.environ['NGINX_HOST']
  redirect_url = 'https://{0}:{1}/login?{2}={3}'.format(hostname, DASHBOARD_HTTPS_PORT, CONTINUE_PARAM, urllib.quote(continue_url))
 start_response('302 Requires login', [('Location', redirect_url)])
 return []

def login_redirect ( application_url , continue_url , start_response ) : if AppDashboardHelper . USE_SHIBBOLETH : redirect_url = '{0}:{1}/login?{2}={3}' . format ( AppDashboardHelper . SHIBBOLETH_CONNECTOR , AppDashboardHelper . SHIBBOLETH_CONNECTOR_PORT , CONTINUE_PARAM , urllib . quote ( continue_url ) ) else : hostname = os . environ [ 'NGINX_HOST' ] redirect_url = 'https://{0}:{1}/login?{2}={3}' . format ( hostname , DASHBOARD_HTTPS_PORT , CONTINUE_PARAM , urllib . quote ( continue_url ) ) start_response ( '302 Requires login' , [ ( 'Location' , redirect_url ) ] ) return [ ]
load current redirect to context .