Revision d994d118

b/aai/middleware.py
12 12
    auth_key   = "X-Auth-Key"
13 13

  
14 14
    def process_request(self, request):
15
        request.META['HTTP_X_AUTH_TOKEN'] = '46e427d657b20defe352804f0eb6f8a2'
15
        if not request.path.startswith('/api/') :
16
            #print time.strftime("[%d/%b/%Y %H:%M:%S]"), " Path", \
17
            #  request.path , ": Not authenticated"
18
            return
16 19
        token = request.META.get('HTTP_X_AUTH_TOKEN', None)        
17 20
        if token:
18 21
            user = None
b/ui/static/synnefo.js
2 2
var changes_since = 0, deferred = 0, update_request = false, load_request = false, pending_actions = [];
3 3
var API_URL = "/api/v1.1";
4 4

  
5
//FIXME: sends a fake HTTP_AUTH_TOKEN
6
    $.ajaxSetup({
7
        'beforeSend': function(xhr) {xhr.setRequestHeader("X_AUTH_TOKEN", "46e427d657b20defe352804f0eb6f8a2")}
8
    });
9

  
10

  
5 11
function ISODateString(d){
6 12
    //return a date in an ISO 8601 format using UTC.
7 13
    //do not include time zone info (Z) at the end

Also available in: Unified diff