You are here

public function JanrainCaptureApiInterface::authenticate in Janrain Registration 8

Returns requested access token and set it to the current session.

Parameters

string $auth_code: The code of authentication.

string $redirect_uri: The URI to redirect to after successful call.

Return value

\Drupal\user\UserInterface The Drupal account of authenticated user.

Throws

\GuzzleHttp\Exception\GuzzleException

\Drupal\janrain_capture\Exception\JsonParseError

\Drupal\janrain_capture\Exception\JanrainApiCallError

\Drupal\Core\Entity\EntityStorageException

1 method overrides JanrainCaptureApiInterface::authenticate()
JanrainCaptureApi::authenticate in src/JanrainCaptureApi.php
Returns requested access token and set it to the current session.

File

src/JanrainCaptureApiInterface.php, line 39

Class

JanrainCaptureApiInterface
The interface for implementing Janrain Capture authentication.

Namespace

Drupal\janrain_capture

Code

public function authenticate(string $auth_code, string $redirect_uri) : UserInterface;