<?php

namespace api\v2;
use api\v2\Base;
use Exception;

use function api\v2\import_common;
import_common();
// require_once(dirname(__FILE__) . '/../../../../includes/components/oauth2/sso-ajaxhelper.php');



/**
 * To Implement:
 * 
 * ManageTenantsPage:
 *  get - tenants
 * 
 * AddEditTenantModal:
 *  post - tenants
 * 
 * Import Users Modal:
 *  get - UsersAAD
 *  get - UsersXI
 *  post - UsersXI
 */

/**
 * Manages AAD tenants
 * 
 * functions:
 * - get: Get a list of tenants with their associated users and data
 * - post: Create a new tenant
 * - put: Update an existing tenant
 * - delete: Delete a tenant
 * 
 * user functions:
 * - get: Get a list of users for a tenant
 * - post: Create a new user for a tenant
 * - put: Update an existing user for a tenant
 * - delete: Delete a user for a tenant
 */
class tenants extends Base {
    /*
     * Auth function for get request method on api/v2/sso/tenants
     * All necessary auth is done in check_authentication so this just returns true.
     */
    public function authorized_for_get() {
        return true;
    }

    /*
     * get_tenants
     */
    public function get_tenants() {

        $response = [
            
        ];
        return $response;
    }
}