You are here

public function KnownClientsRepositoryInterface::isAuthorized in Simple OAuth (OAuth2) & OpenID Connect 8.4

Same name and namespace in other branches
  1. 8.3 src/KnownClientsRepositoryInterface.php \Drupal\simple_oauth\KnownClientsRepositoryInterface::isAuthorized()
  2. 5.x src/KnownClientsRepositoryInterface.php \Drupal\simple_oauth\KnownClientsRepositoryInterface::isAuthorized()

Checks if a given user authorized a client for a given set of scopes.

Parameters

int $uid: The user ID.

string $client_id: The client ID.

string[] $scopes: List of scopes to authorize for.

Return value

bool TRUE if the client is authorized, FALSE otherwise.

1 method overrides KnownClientsRepositoryInterface::isAuthorized()
KnownClientsRepository::isAuthorized in src/KnownClientsRepository.php
Checks if a given user authorized a client for a given set of scopes.

File

src/KnownClientsRepositoryInterface.php, line 24

Class

KnownClientsRepositoryInterface
An interface that remembers known clients.

Namespace

Drupal\simple_oauth

Code

public function isAuthorized($uid, $client_id, array $scopes);