You are here

function oauth2_server_client_load in OAuth2 Server 7

Loads a single client entity.

Parameters

$client_key: The client key.

Return value

The client entity, or FALSE.

11 calls to oauth2_server_client_load()
OAuth2ServerAdminTestCase::testEditingClientSecret in tests/oauth2_server.test
oauth2_server_authorize_page in ./oauth2_server.pages.inc
Page callback: Authenticates the user and redirect back to the client with an authorization code.
oauth2_server_client_form_validate in includes/oauth2_server.client_admin.inc
Validation callback.
oauth2_server_from_request in ./oauth2_server.module
Loads an OAuth2 server using the request details.
Storage::checkRestrictedGrantType in lib/Drupal/oauth2_server/Storage.php

... See full list

File

./oauth2_server.module, line 565
Provides OAuth2 server functionality.

Code

function oauth2_server_client_load($client_key) {
  $clients = oauth2_server_entity_load_by_properties('oauth2_server_client', array(
    'client_key' => $client_key,
  ));
  return reset($clients);
}