summaryrefslogtreecommitdiff
path: root/Postman/Postman-Auth/PostmanAuthenticationManager.php
diff options
context:
space:
mode:
authoryehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664>2019-11-25 08:22:35 +0000
committeryehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664>2019-11-25 08:22:35 +0000
commitc61784411988d36d9bbd93cd3a97e773990af342 (patch)
tree924e6e9dea2ba7b1eedb14d0c4b03a38aefdf179 /Postman/Postman-Auth/PostmanAuthenticationManager.php
parent907ce8c044159ca8da6ccce3ec5362ac61e7c142 (diff)
downloadPost-SMTP-c61784411988d36d9bbd93cd3a97e773990af342.zip
Adding a folder
Diffstat (limited to 'Postman/Postman-Auth/PostmanAuthenticationManager.php')
-rw-r--r--Postman/Postman-Auth/PostmanAuthenticationManager.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/Postman/Postman-Auth/PostmanAuthenticationManager.php b/Postman/Postman-Auth/PostmanAuthenticationManager.php
new file mode 100644
index 0000000..c405459
--- /dev/null
+++ b/Postman/Postman-Auth/PostmanAuthenticationManager.php
@@ -0,0 +1,18 @@
+<?php
+if ( ! defined( 'ABSPATH' ) ) {
+ exit; // Exit if accessed directly
+}
+if (! interface_exists ( "PostmanAuthenticationManager" )) {
+ interface PostmanAuthenticationManager {
+ const POSTMAN_AUTHORIZATION_IN_PROGRESS = 'request_oauth_permission';
+ const FORCE_REFRESH_X_SECONDS_BEFORE_EXPIRE = 60;
+ public function isAccessTokenExpired();
+ public function refreshToken();
+ public function generateRequestTransactionId();
+ public function requestVerificationCode($transactionId);
+ public function processAuthorizationGrantCode($transactionId);
+ public function getAuthorizationUrl();
+ public function getTokenUrl();
+ public function getCallbackUri();
+ }
+}