GITLAB

CDPP / AMDA_IHM

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
6104c71ee4dd293ad7c81fb20527f1da0994c158
  • AMDA_IHM
  • php
  • rest
  • auth.php
  • 6104c71e   Replace function rateLimitReached() by webservice function auth() Browse Code »
    Nathanael Jourdane
    8 years ago  
auth.php 320 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24

<?php

/**
 *   @file getParameter.php
 *   @brief  REST interface for service getParameter
 *
 *
 *   @version $Id:  $
 */

  require_once '../config.php';

  $amda_ws = new WebServer();
  $result = $amda_ws->auth($_GET);

 if ($result['success']){
	 echo $result['token'];
 }
 else {
	 echo $result['message'];
 }

?>