public function Oauth::initalizeToken in Entity Share 8.3
Helper function to initialize a token.
@SuppressWarnings(PHPMD.ErrorControlOperator) cSpell:disable.
Parameters
\Drupal\entity_share_client\Entity\Remote $remote: The remote website for which authorization is needed.
array $credentials: Trial credentials.
Throws
\League\OAuth2\Client\Provider\Exception\IdentityProviderException Exception thrown if the provider response contains errors.
Deprecated
in 8.x-3.0-beta4 and will be removed in 4.0.0. Use initializeToken() instead.
File
- modules/
entity_share_client/ src/ Plugin/ ClientAuthorization/ Oauth.php, line 338
Class
- Oauth
- Provides Oauth2 based client authorization.
Namespace
Drupal\entity_share_client\Plugin\ClientAuthorizationCode
public function initalizeToken(Remote $remote, array $credentials) {
// cSpell:enable.
@trigger_error(__METHOD__ . '() is deprecated in 8.x-3.0-beta4 and will be removed in 4.0.0. use initializeToken() instead.', \E_USER_DEPRECATED);
$this
->initializeToken($remote, $credentials);
}