]> git.defcon.no Git - hermes/blobdiff - api/domain.php
First stab at auth. Flow-changes to make things sort'a work
[hermes] / api / domain.php
index b91a347bf602dfa1280593f914da22ac88bd4a31..7c8a797b6067dd84339ad9a08032a7b6d61e3966 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 require_once('config.php');
+require_once('lib/auth_base.php');
 require_once('lib/common_functions.php');
 require_once('lib/db_functions.php');
 require_once('lib/domain_functions.php');
@@ -17,6 +18,8 @@ if ( !$config['sql_link'] )
        exit;
 }
 
+token_auth();
+
 //*************************************************************************************        
        switch ( $_SERVER['PATH_INFO'] )
        {