You are here

private function Oauth2ClientGrantServiceBase::getRedirectUri in OAuth2 Client 8.2

Retrieves the local redirect URI used for OAuth2 authentication.

Parameters

\Drupal\oauth2_client\Plugin\Oauth2Client\Oauth2ClientPluginInterface $client: The OAuth2 Client Plugin for which the redirect URI should be retrieved.

Return value

string The redirect URI for the given OAuth2 Server client.

1 call to Oauth2ClientGrantServiceBase::getRedirectUri()
Oauth2ClientGrantServiceBase::getProvider in src/Service/Grant/Oauth2ClientGrantServiceBase.php
Creates a new provider object.

File

src/Service/Grant/Oauth2ClientGrantServiceBase.php, line 132

Class

Oauth2ClientGrantServiceBase
Base class for OAuth2 Client grant services.

Namespace

Drupal\oauth2_client\Service\Grant

Code

private function getRedirectUri(Oauth2ClientPluginInterface $client) {
  return $this->urlGenerator
    ->generateFromRoute('<current>', [], [
    'absolute' => TRUE,
  ]);
}