Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. XOAuth2Authenticator.php

function XOAuth2Authenticator::authenticate

Overrides AuthenticatorInterface::authenticate

See also

https://developers.google.com/google-apps/gmail/xoauth2_protocol#the_sa…

File

vendor/symfony/mailer/Transport/Smtp/Auth/XOAuth2Authenticator.php, line 33

Class

XOAuth2Authenticator
Handles XOAUTH2 authentication.

Namespace

Symfony\Component\Mailer\Transport\Smtp\Auth

Code

public function authenticate(EsmtpTransport $client) : void {
    $client->executeCommand('AUTH XOAUTH2 ' . base64_encode('user=' . $client->getUsername() . "\x01auth=Bearer " . $client->getPassword() . "\x01\x01") . "\r\n", [
        235,
    ]);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal