Retrieves authentication endpoint for the STS.

@return string
505627
public function getAuthenticationEndpoint() {
        switch ( $this->authMode ) {
            case 'OnlineFederation':
                return $this->crmRegion;
            case 'Federation':
                return $this->organizationUrl;
            default:
                throw new \InvalidArgumentException( 'Unsupported authentication mode: ' . $this->authMode );
        }
    }
178708
public function getAuthority()
    {
        return ( $this->_user ? $this->_user . '@' : '') . $this->_host . (isset($this->_port) ? ':' . $this->_port : '');
    }
350762
public function getEndpoint($endpoint, $account = null)
    {
        $isSandbox = (new ConfigurationRepository)->getAccountKey('sandbox', true, $account);

        if ($isSandbox) {
            return $this->resolveUrl(MPESA_SANDBOX, $endpoint);
        }

        return $this->resolveUrl(MPESA_PRODUCTION, $endpoint);
    }
561245
public function getAccessToken() {
    $token = self::$auth->getAccessToken();
    return (null == $token || 'null' == $token) ? null : $token;
  }
1244078
protected function requestAuthorizationToken(): string
    {
        $result = $this->options->getAuthorizationToken();
        if ($result === '') {
            $authRequest = new AuthRequest();
            $authRequest->setAgent($this->options->getAgent())
                        ->setAccessKey($this->options->getAccessKey())
                        ->setEnabledModNames($this->options->getEnabledModNames());

            $authResponse = $this->fetchResponse($authRequest);
            if ($authResponse instanceof AuthResponse) {
                $result = $authResponse->getAuthorizationToken();
                $this->options->setAuthorizationToken($result);
            }
        }
        return $result;
    }
68847
protected function _getAuthParam()
    {
        if(!isset($this->__auth_param))
        {
            $this->__auth_param = null;

            $request = $this->getObject('request');

            if($request->headers->has('Authorization'))
            {
                $authorization = $request->headers->get('Authorization');

                if (stripos($authorization, 'basic') === 0)
                {
                    $exploded = explode(':', base64_decode(substr($authorization, 6)));

                    if (count($exploded) == 2) {
                        $this->__auth_param = array($exploded[0], $exploded[1]);
                    }
                }
            }
        }

        return $this->__auth_param;
    }
943520
private function extractAuthEndpoint()
    {
        $auth = empty($this->config['auth_endpoint']) ? self::DEFAULT_AUTH_ENDPOINT : $this->config['auth_endpoint'];

        switch ($auth) {
            case Endpoint::UK:
                $endpoint = Rackspace::UK_IDENTITY_ENDPOINT;
                break;
            case Endpoint::US:
                $endpoint = Rackspace::US_IDENTITY_ENDPOINT;
                break;
            default:
                $endpoint = $auth;
                break;
        }

        return Url::factory($endpoint);
    }
603363
public function getAuthority()
    {
        $authority = $this->getHost();
        if ($authority === null) {
            return '';
        }

        if ($this->getUserInfo() !== '') {
            $authority = $this->getUserInfo() . '@' . $authority;
        }

        if ($this->port !== null && self::isStandardPort($this->port, $this->scheme, $this->host) === false) {
            $authority .= ':' . $this->port;
        }

        return $authority;
    }
907561
public static function getBearerToken()
    {
        $headers = Request::getAuthorizationHeader();
        if (!empty($headers)) {
            if (preg_match('/Bearer\s(\S+)/', $headers, $matches)) {
                return $matches[1];
            }
        }
        return null;
    }
1098842
public function getEndpointsAttribute()
    {
        $id = $this->attributes['id'];

        $endpoints['index'] = route('api.users.roles');
        $endpoints['users'] = route('api.users.roles.users', ['type' => $id]);
        $endpoints['update'] = route('api.users.roles.update', ['type' => $id]);
        $endpoints['destroy'] = route('api.users.roles.destroy', ['type' => $id]);

        return $endpoints;
    }
543056
protected function getEndpoint($method)
    {
        $endpoint = "destinations";
        $queryString = array();
        $page = $this->getArgument("page");
        $sortBy = $this->getArgument("sortBy");
        $order = $this->getArgument("order");
        if (!is_null($page)) {
            $queryString['page'] = $page;
            $this->delArgument("page");
        }
        if (!is_null($sortBy)) {
            $queryString['sort_by'] = $sortBy;
            $this->delArgument("sortBy");
        }
        if (!is_null($order)) {
            $queryString['order'] = $order;
            $this->delArgument("order");
        }
        if (!empty($queryString)) {
            $queryString = http_build_query($queryString);
            $endpoint .= "?$queryString";
        }
        return $endpoint;
    }
1374106
protected function getAuth() {
        if (!$this->_auth) {
            $this->_auth = new AuthTypesList(
                $this->version,
                $this->solution['accountSid'],
                $this->solution['sid']
            );
        }

        return $this->_auth;
    }
892001
private function getSecurityToken()
    {
        if ($this->container->get('security.context')->getToken() instanceof TokenInterface) {
            return $this->container->get('security.context')->getToken();
        }

        return null;
    }
358762
public function getAuthority(): string
    {
        if ($this->host == '') {
            return '';
        }

        $authority = $this->host;
        if ($this->user != '') {
            $authority = $this->user.'@'.$authority;
        }

        if ($this->port !== null && !$this->isDefaultPort($this->scheme, $this->port)) {
            $authority .= ':'.$this->port;
        }

        return $authority;
    }
161002
public function getAuthorsEnglish()
    {
        $array = $this->getAuthors();
        // sanity check
        if (!$array || !count($array)) {
            return '';
        }
        // change array into linked usernames
        foreach ($array as $key => $user) {
            $full_array[$key] = '<a href="'.$user->getURL().'">'.$user->getName().'</a>';
        }
        // get last element
        $last = array_pop($full_array);
        // if it was the only element - return it
        if (!count($full_array)) {
            return $last;
        }
        return implode(', ', $full_array).' and '.$last;
    }
1278112
public function getToken() : string {
        if (($this->token === null) || ($this->token->isExpired())) {
            $jwtBuilder = new Builder();
            $jwtBuilder->set('iss', $this->credentialPublicKey);
            $jwtBuilder->set('sub', $this->userName);

            $this->token = $jwtBuilder
                ->sign(new Sha256(), $this->credentialPrivateKey)
                ->getToken();
        }

        return (string) $this->token;
    }
22120
protected function get_iauthority()
	{
		if ($this->iuserinfo !== null || $this->ihost !== null || $this->port !== null)
		{
			$iauthority = '';
			if ($this->iuserinfo !== null)
			{
				$iauthority .= $this->iuserinfo . '@';
			}
			if ($this->ihost !== null)
			{
				$iauthority .= $this->ihost;
			}
			if ($this->port !== null)
			{
				$iauthority .= ':' . $this->port;
			}
			return $iauthority;
		}
		else
		{
			return null;
		}
	}