You are here

public function AuthenticationManagerInterface::getAccount in RESTful 7.2

Get the user account for the request.

Parameters

RequestInterface $request: The request.

bool $cache: Boolean indicating if the resolved user should be cached for next calls.

Return value

object The user object.

Throws

UnauthorizedException When bad credentials are provided.

1 method overrides AuthenticationManagerInterface::getAccount()
AuthenticationManager::getAccount in src/Authentication/AuthenticationManager.php
Get the user account for the request.

File

src/Authentication/AuthenticationManagerInterface.php, line 61
Contains \Drupal\restful\Authentication\AuthenticationManagerInterface

Class

AuthenticationManagerInterface

Namespace

Drupal\restful\Authentication

Code

public function getAccount(RequestInterface $request, $cache = TRUE);