You are here

public function OauthController::authStart in Media: Acquia DAM 8

Redirects the user to the auth url.

Route: /acquiadam/authStart.

1 string reference to 'OauthController::authStart'
media_acquiadam.routing.yml in ./media_acquiadam.routing.yml
media_acquiadam.routing.yml

File

src/Controller/OauthController.php, line 168

Class

OauthController
Controller routines for acquiadam routes.

Namespace

Drupal\media_acquiadam\Controller

Code

public function authStart() {
  $authFinishRedirect = $this->request->query
    ->get('auth_finish_redirect');
  $this->oauth
    ->setAuthFinishRedirect($authFinishRedirect);
  return new TrustedRedirectResponse($this->oauth
    ->getAuthLink());
}