@csrf_exempt
def openid_login_complete(request, redirect_field_name=REDIRECT_FIELD_NAME, render_failure=None):
 render_failure = (render_failure or default_render_failure)
 openid_response = openid_views.parse_openid_response(request)
 if (not openid_response):
  return render_failure(request, 'This is an OpenID relying party endpoint.')
 if (openid_response.status == SUCCESS):
  external_id = openid_response.identity_url
  oid_backend = openid_auth.OpenIDBackend()
  details = oid_backend._extract_user_details(openid_response)
  log.debug('openid success, details=%s', details)
  url = getattr(settings, 'OPENID_SSO_SERVER_URL', None)
  external_domain = '{0}{1}'.format(OPENID_DOMAIN_PREFIX, url)
  fullname = ('%s %s' % (details.get('first_name', ''), details.get('last_name', '')))
  return _external_login_or_signup(request, external_id, external_domain, details, details.get('email', ''), fullname, retfun=functools.partial(redirect, get_next_url_for_login_page(request)))
 return render_failure(request, 'Openid failure')

@ csrf_exempt def openid_login_complete ( request , redirect_field_name = REDIRECT_FIELD_NAME , render_failure = None ) : render_failure = ( render_failure or default_render_failure ) openid_response = openid_views . parse_openid_response ( request ) if ( not openid_response ) : return render_failure ( request , 'This is an OpenID relying party endpoint.' ) if ( openid_response . status == SUCCESS ) : external_id = openid_response . identity_url oid_backend = openid_auth . OpenIDBackend ( ) details = oid_backend . _extract_user_details ( openid_response ) log . debug ( 'openid success, details=%s' , details ) url = getattr ( settings , 'OPENID_SSO_SERVER_URL' , None ) external_domain = '{0}{1}' . format ( OPENID_DOMAIN_PREFIX , url ) fullname = ( '%s %s' % ( details . get ( 'first_name' , '' ) , details . get ( 'last_name' , '' ) ) ) return _external_login_or_signup ( request , external_id , external_domain , details , details . get ( 'email' , '' ) , fullname , retfun = functools . partial ( redirect , get_next_url_for_login_page ( request ) ) ) return render_failure ( request , 'Openid failure' )
complete the openid login process .