protected property OAuth2Client::$params in OAuth2 Client 8
Parameters.
Associative array of the parameters that are needed by the different types of authorization flows.
- auth_flow :: server-side | client-credentials | user-password
- client_id :: Client ID, as registered on the oauth2 server
- client_secret :: Client secret, as registered on the oauth2 server
- token_endpoint :: something like: https://oauth2_server.example.org/oauth2/token
- authorization_endpoint :: somethig like: https://oauth2_server.example.org/oauth2/authorize
- redirect_uri :: something like: url('oauth2/authorized', array('absolute' => TRUE)) or https://oauth2_client.example.org/oauth2/authorized
- scope :: requested scopes, separated by a space
- username :: username of the resource owner
- password :: password of the resource owner
- skip-ssl-verification :: Skip verification of the SSL connection
(needed for testing).
Type: array
File
- src/
Service/ OAuth2Client.php, line 61
Class
- OAuth2Client
- OAuth2Client service.
Namespace
Drupal\oauth2_client\ServiceCode
protected $params = [
'auth_flow' => NULL,
'client_id' => NULL,
'client_secret' => NULL,
'token_endpoint' => NULL,
'authorization_endpoint' => NULL,
'redirect_uri' => NULL,
'scope' => NULL,
'username' => NULL,
'password' => NULL,
'skip-ssl-verification' => FALSE,
];