/**
  * Deletes the authentication ticket for the user by supplying the refresh token.
  *
  * @param string $refreshToken Alphanumeric string used for access tokens. This token refreshes access for accounts by generating a new developer or application account authentication ticket after an access token expires.
  */
 public static function deleteUserAuthTicketClient($refreshToken)
 {
     $url = TenantAdminUserAuthTicketUrl::deleteUserAuthTicketUrl($refreshToken);
     $mozuClient = new MozuClient();
     $mozuClient->withResourceUrl($url);
     return $mozuClient;
 }
Esempio n. 2
0
 private static function getLogoutUrl(UserAuthTicket $ticket)
 {
     switch ($ticket->authenticationScope) {
         case AuthenticationScope::TENANT:
             return TenantAdminUserAuthTicketUrl::deleteUserAuthTicketUrl($ticket->getRefreshToken)->getUrl();
         case AuthenticationScope::DEVELOEPR:
             var_dump($ticket->refreshToken);
             return DeveloperAdminUserAuthTicketUrl::deleteUserAuthTicketUrl($ticket->refreshToken)->getUrl();
         default:
             throw new \Exception("Not Implemented");
     }
 }