@csrf_exempt
def ssl_login(request):
 if (not settings.FEATURES['AUTH_USE_CERTIFICATES']):
  return HttpResponseForbidden()
 cert = ssl_get_cert_from_request(request)
 if (not cert):
  return student.views.index(request)
 (_user, email, fullname) = _ssl_dn_extract_info(cert)
 redirect_to = get_next_url_for_login_page(request)
 retfun = functools.partial(redirect, redirect_to)
 return _external_login_or_signup(request, external_id=email, external_domain='ssl:MIT', credentials=cert, email=email, fullname=fullname, retfun=retfun)

@ csrf_exempt def ssl_login ( request ) : if ( not settings . FEATURES [ 'AUTH_USE_CERTIFICATES' ] ) : return HttpResponseForbidden ( ) cert = ssl_get_cert_from_request ( request ) if ( not cert ) : return student . views . index ( request ) ( _user , email , fullname ) = _ssl_dn_extract_info ( cert ) redirect_to = get_next_url_for_login_page ( request ) retfun = functools . partial ( redirect , redirect_to ) return _external_login_or_signup ( request , external_id = email , external_domain = 'ssl:MIT' , credentials = cert , email = email , fullname = fullname , retfun = retfun )
this is called by branding .