PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 11.0.2
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v11.0.2
11.1.1 11.1.0 11.0.5 11.0.4 11.0.3 11.0.2 11.0.1 11.0.0 10.11.1 10.11.0 10.10.2 10.10.1 10.10.0 10.9.1 trunk 10.0.0 10.0.1 10.1.0 10.1.1 10.1.2 10.1.3 10.1.4 10.2.0 10.2.1 10.2.2 All 62 releases
acymailing / back / Libraries / Mailer / OAuthTokenProvider.php

OAuthTokenProvider.php in AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress 11.0.2, at back/Libraries/Mailer/OAuthTokenProvider.php

45 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * PHPMailer - PHP email creation and transport class.
5 * PHP Version 5.5.
6 *
7 * @see https://github.com/PHPMailer/PHPMailer/ The PHPMailer GitHub project
8 *
9 * @author Marcus Bointon (Synchro/coolbru) <[email protected]>
10 * @author Jim Jagielski (jimjag) <[email protected]>
11 * @author Andy Prevost (codeworxtech) <[email protected]>
12 * @author Brent R. Matzelle (original founder)
13 * @copyright 2012 - 2020 Marcus Bointon
14 * @copyright 2010 - 2012 Jim Jagielski
15 * @copyright 2004 - 2009 Andy Prevost
16 * @license https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html GNU Lesser General Public License
17 * @note This program is distributed in the hope that it will be useful - WITHOUT
18 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
19 * FITNESS FOR A PARTICULAR PURPOSE.
20 */
21
22 namespace AcyMailerPhp;
23
24 /**
25 * OAuthTokenProvider - OAuth2 token provider interface.
26 * Provides base64 encoded OAuth2 auth strings for SMTP authentication.
27 *
28 * @see OAuth
29 * @see SMTP::authenticate()
30 *
31 * @author Peter Scopes (pdscopes)
32 * @author Marcus Bointon (Synchro/coolbru) <[email protected]>
33 */
34 interface OAuthTokenProvider
35 {
36 /**
37 * Generate a base64-encoded OAuth token ensuring that the access token has not expired.
38 * The string to be base 64 encoded should be in the form:
39 * "user=<user_email_address>\001auth=Bearer <access_token>\001\001"
40 *
41 * @return string
42 */
43 public function getOauth64();
44 }
45