/**
  * Get the URL to force a logout of the user on the CultureFeed provider.
  *
  * @param string $destination
  *   (optional) The URL of the page to redirect the user back to after the logout has been handled on the provider.
  * @return string
  *   The URL of the 'logout' page.
  */
 public function getUrlLogout($destination = '')
 {
     $query = array();
     if (!empty($destination)) {
         $query['destination'] = $destination;
     }
     return $this->oauth_client->getUrl('auth/logout', $query);
 }
Beispiel #2
0
 /**
  * {@inheritdoc}
  */
 public function constructPassHolderActivationLink($uid, $activation_code, $destination = NULL)
 {
     $path = "uitpas/activate/{$uid}/{$activation_code}";
     $query = array();
     if ($destination) {
         $query['destination'] = $destination;
     }
     $link = $this->oauth_client->getUrl($path, $query);
     return $link;
 }