__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php

declare(strict_types=1);

namespace Sabre\HTTP\Auth;

/**
 * HTTP Bearer authentication utility.
 *
 * This class helps you setup bearer auth. The process is fairly simple:
 *
 * 1. Instantiate the class.
 * 2. Call getToken (this will return null or a token as string)
 * 3. If you didn't get a valid token, call 'requireLogin'
 *
 * @copyright Copyright (C) fruux GmbH (https://fruux.com/)
 * @author François Kooman ([email protected])
 * @license http://sabre.io/license/ Modified BSD License
 */
class Bearer extends AbstractAuth
{
    /**
     * This method returns a string with an access token.
     *
     * If no token was found, this method returns null.
     *
     * @return string|null
     */
    public function getToken()
    {
        $auth = $this->request->getHeader('Authorization');

        if (!$auth) {
            return null;
        }

        if ('bearer ' !== strtolower(substr($auth, 0, 7))) {
            return null;
        }

        return substr($auth, 7);
    }

    /**
     * This method sends the needed HTTP header and status code (401) to force
     * authentication.
     */
    public function requireLogin()
    {
        $this->response->addHeader('WWW-Authenticate', 'Bearer realm="'.$this->realm.'"');
        $this->response->setStatus(401);
    }
}

Filemanager

Name Type Size Permission Actions
AWS.php File 5.73 KB 0664
AbstractAuth.php File 1.27 KB 0664
Basic.php File 1.49 KB 0664
Bearer.php File 1.28 KB 0664
Digest.php File 6.04 KB 0664
Filemanager