You are here

public function Agent::authorizeBySecret in DRD Agent 4.0.x

Same name and namespace in other branches
  1. 8.3 src/Controller/Agent.php \Drupal\drd_agent\Controller\Agent::authorizeBySecret()

Route callback to authorize a DRD instance by a secret.

Return value

\Symfony\Component\HttpFoundation\Response The response to DRD.

Throws

\Exception

1 string reference to 'Agent::authorizeBySecret'
drd_agent.routing.yml in ./drd_agent.routing.yml
drd_agent.routing.yml

File

src/Controller/Agent.php, line 89

Class

Agent
Class Default.

Namespace

Drupal\drd_agent\Controller

Code

public function authorizeBySecret() : Response {
  return $this
    ->deliver(ActionBase::create($this->container)
    ->authorizeBySecret((bool) $this->state
    ->get('drd_agent.debug_mode', FALSE)));
}