You are here

public function OAuth2ClientInterface::init in OAuth2 Client 8

Initialize an OAuth2Client object.

Parameters

array $params: Associative array of the parameters that are needed by the different types of authorization flows.

string $id: ID of the client. If not given, it will be generated from token_endpoint, client_id and auth_flow.

1 method overrides OAuth2ClientInterface::init()
OAuth2Client::init in src/Service/OAuth2Client.php
Initialize an OAuth2Client object.

File

src/Service/OAuth2ClientInterface.php, line 22

Class

OAuth2ClientInterface
Interface OAuth2ClientInterface.

Namespace

Drupal\oauth2_client\Service

Code

public function init($params = NULL, $id = NULL);