You are here

function oauth2_client_get_redirect_uri in OAuth2 Client 8

Same name in this branch
  1. 8 oauth2_client.module \oauth2_client_get_redirect_uri()
  2. 8 oauth2_client.api.php \oauth2_client_get_redirect_uri()
Same name and namespace in other branches
  1. 7.2 oauth2_client.module \oauth2_client_get_redirect_uri()
  2. 7.2 oauth2_client.api.php \oauth2_client_get_redirect_uri()
  3. 7 oauth2_client.module \oauth2_client_get_redirect_uri()

Return the redirect_uri of oauth2_client.

2 calls to oauth2_client_get_redirect_uri()
TestController::authorized in tests/oauth2_client_test/src/Controller/TestController.php
Authorized.
TestController::clientIntegration in tests/oauth2_client_test/src/Controller/TestController.php
Client Integration.

File

./oauth2_client.module, line 59
Provides OAuth2 client functionality.

Code

function oauth2_client_get_redirect_uri() {
  return Url::fromRoute('oauth2.redirect_url', [], [
    'absolute' => TRUE,
  ])
    ->toString();
}