Set the list of prompts contained in the authorization request.

@param Prompt[] $prompts
The list of prompts requested by the client application.

@return AuthorizationResponse
`$this` object.
489365
public function setPrompts(array $prompts = null)
    {
        ValidationUtility::ensureNullOrArrayOfType(
            '$prompts', $prompts, '\Authlete\Types\Prompt');

        $this->prompts = $prompts;

        return $this;
    }
870263
protected function setPermissions($permissions)
    {
        foreach ($permissions as $action => $permission) {
            $this->setPermission($action, $permission);
        }
    }
729480
protected function updateTokens(array $tokens)
    {
        $this->roles = null;
        $this->contextHash = null;

        if ($this->request === null) {
            return;
        }

        /** @var $token TokenInterface */
        foreach ($tokens as $token) {
            $token->updateCredentials($this->request);
        }

        $sessionDataContainer = $this->objectManager->get(SessionDataContainer::class);
        $sessionDataContainer->setSecurityTokens(array_merge($this->inactiveTokens, $this->activeTokens));
    }
776352
public function checkboxes($prompt, array $options)
    {
        if ($this->hasSttyAvailable()) {
            $checkboxes = $this->climate->checkboxes($prompt, $options);

            return $checkboxes->prompt();
        }
        return '';
    }
847439
private function setUpCredentials($credentials)
    {
        if (is_array($credentials)) {
            // using full credentials
            $this->clientId = $credentials['client-id'];
            $this->clientSecret = $credentials['client-secret'];
            $this->redirectUrl = $credentials['redirect-url'];
            $this->state = $credentials['state'];
            $this->scopes = $credentials['scopes'];
        } else {
            // using self issued access token
            $this->accessToken = $credentials;
        }
    }
550291
public function setAuthorization($username, $password)
    {
        $this->username = $username;
        $this->password = $password;

        return $this;
    }
1080103
public function prompt()
    {
        if ($this->hasReadline) {
            readline_callback_handler_install($this->getPrompt(), [ $this, 'lineHandler' ]);
        } else {
            if ($this->paused) { $this->resume(); }
            $this->console->log($this->getPrompt());
        }

        return $this;
    }
590186
public function setPrivileges(array $privileges)
    {
        foreach ($privileges as $privilege) {
            $this->privileges[$privilege->getCacheEntryIdentifier()] = $privilege;
        }
    }
1351847
public function setSignRequests(array $signRequests): self
    {
        array_map(function (SignRequest $s) {
        }, $signRequests); // type check
        $this->signRequests = $signRequests;
        return $this;
    }
963175
public function tokenize(array $credentials)
    {
        if (empty($credentials)) {
            throw new AuthenticationException('Unable to create token, no or empty credentials');
        }

        foreach ($this->providers as $provider) {
            if (!$provider->supportsCredentials($credentials)) {
                continue;
            }

            if (!$token = $provider->tokenize($credentials)) {
                $this->stash()
                     ->destroy();

                throw new AuthenticationException(sprintf('Unable to create token, credentials could not be authenticated in provider "%s"', get_class($provider)));
            }

            $this->stash()
                 ->put($token);

            return $this;
        }

        $this->stash()
             ->destroy();

        throw new AuthenticationException(sprintf('Unable to create token, missing provider supporting credentials "%s"', implode(', ', array_keys($credentials))));
    }
886171
public function setRequiredTypes(array $types)
    {
        $this->required = array_merge($this->required, $types);
        $this->requiredTypes = $types;

        return $this;
    }
691979
def set_prompt(self):
        """"""
        # No right prompt
        command_line = b'PS2=;RPS1=;RPROMPT=;'
        command_line += b'PROMPT_COMMAND=;'
        command_line += b'TERM=ansi;'
        command_line += b'unset HISTFILE;'
        prompt1, prompt2 = callbacks.add(b'prompt', self.seen_prompt_cb, True)
        command_line += b'PS1="' + prompt1 + b'""' + prompt2 + b'\n"\n'
        return command_line
1165378
public function setAcrs(array $acrs = null)
    {
        ValidationUtility::ensureNullOrArrayOfString('$acrs', $acrs);

        $this->acrs = $acrs;

        return $this;
    }
558309
public function set($filters)
    {
        if (! is_array($filters)) {
            $filters = func_get_args();
        }

        $this->clear();

        foreach ($filters as $filter) {
            $this->push($filter);
        }

        return $this->getDisplay();
    }
133692
public function setCredentials($username, $password)
    {
        $this->username = $username;
        $this->password = $password;

        return $this;
    }
183639
def _set_prompt(self):
        """"""
        self.cwd = os.getcwd()
        self.prompt = Fore.CYAN + '{!r} $ '.format(self.cwd) + Fore.RESET
250024
public function setInitials($initials) {
        if (empty($initials))
            throw new Exception('Initials must be set and cannot be empty.');

        $this->initials = trim($initials);

        return $this;
    }